Patch "serial: 8250: moxa: Store num_ports in brd" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
serial: 8250: moxa: Store num_ports in brd
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
serial-8250-moxa-store-num_ports-in-brd.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Oct 5 10:28:31 CEST 2017
From: "Matwey V. Kornilov" <[email protected]>
Date: Thu, 29 Dec 2016 21:48:51 +0300
Subject: serial: 8250: moxa: Store num_ports in brd
From: "Matwey V. Kornilov" <[email protected]>
[ Upstream commit 9c4b60fe5313c125b1bf68ef04b0010512c27f2d ]
When struct moxa8250_board is allocated, then num_ports should be initialized in order to use it later in moxa8250_remove.
--- drivers/tty/serial/8250/8250_moxa.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/8250/8250_moxa.c +1 -0
@@ -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 ));
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/serial-8250-moxa-store-num_ports-in-brd.patch queue-4.9/serial-8250_port-remove-dangerous-pr_debug.patch