This is a note to let you know that I've just added the patch titled USB: mxuport: fix null deref when used as a console to the 3.19-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: usb-mxuport-fix-null-deref-when-used-as-a-console.patch and it can be found in the queue-3.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From db81de767e375743ebb0ad2bcad3326962c2b67e Mon Sep 17 00:00:00 2001 From: Johan Hovold <johan@xxxxxxxxxx> Date: Wed, 18 Feb 2015 11:51:07 +0700 Subject: USB: mxuport: fix null deref when used as a console From: Johan Hovold <johan@xxxxxxxxxx> commit db81de767e375743ebb0ad2bcad3326962c2b67e upstream. Fix null-pointer dereference at probe when the device is used as a console, in which case the tty argument to open will be NULL. Fixes: ee467a1f2066 ("USB: serial: add Moxa UPORT 12XX/14XX/16XX driver") Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> Acked-by: Greg Kroah-Hartman <greg@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/mxuport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/usb/serial/mxuport.c +++ b/drivers/usb/serial/mxuport.c @@ -1284,7 +1284,8 @@ static int mxuport_open(struct tty_struc } /* Initial port termios */ - mxuport_set_termios(tty, port, NULL); + if (tty) + mxuport_set_termios(tty, port, NULL); /* * TODO: use RQ_VENDOR_GET_MSR, once we know what it Patches currently in stable-queue which might be from johan@xxxxxxxxxx are queue-3.19/revert-usb-serial-make-bulk_out_size-a-lower-limit.patch queue-3.19/usb-serial-fix-infinite-wait_until_sent-timeout.patch queue-3.19/usb-serial-cp210x-adding-seletek-device-id-s.patch queue-3.19/tty-fix-tty_wait_until_sent-on-64-bit-machines.patch queue-3.19/usb-ftdi_sio-add-jtag-quirk-support-for-cyber-cortex-av-boards.patch queue-3.19/usb-mxuport-fix-null-deref-when-used-as-a-console.patch queue-3.19/usb-ftdi_sio-add-pids-for-actisense-usb-devices.patch queue-3.19/usb-serial-fix-potential-use-after-free-after-failed-probe.patch queue-3.19/net-irda-fix-wait_until_sent-poll-timeout.patch queue-3.19/usb-serial-fix-tty-device-error-handling-at-probe.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html