lkml.org 
[lkml]   [2017]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 031/104] serial: 8250: moxa: Store num_ports in brd
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: "Matwey V. Kornilov" <matwey@sai.msu.ru>


    [ Upstream commit 9c4b60fe5313c125b1bf68ef04b0010512c27f2d ]

    When struct moxa8250_board is allocated, then num_ports should
    be initialized in order to use it later in moxa8250_remove.

    Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/tty/serial/8250/8250_moxa.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/tty/serial/8250/8250_moxa.c
    +++ b/drivers/tty/serial/8250/8250_moxa.c
    @@ -68,6 +68,7 @@ static int moxa8250_probe(struct pci_dev
    sizeof(unsigned int) * nr_ports, GFP_KERNEL);
    if (!brd)
    return -ENOMEM;
    + brd->num_ports = nr_ports;

    memset(&uart, 0, sizeof(struct uart_8250_port));


    \
     
     \ /
      Last update: 2017-10-06 10:55    [W:3.978 / U:0.124 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site