]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mxuport: fix null deref when used as a console
authorJohan Hovold <johan@kernel.org>
Wed, 18 Feb 2015 04:51:07 +0000 (11:51 +0700)
committerJohan Hovold <johan@kernel.org>
Thu, 26 Feb 2015 16:13:59 +0000 (17:13 +0100)
commit47b0a4f21476c877ba7eefa01c0bf8337934b119
treee4f1ed8f9696f35e408093f6be8e64c39c1a6bbb
parent4960601438cbe69da2033ea46a0b40813fbb5a98
USB: mxuport: fix null deref when used as a console

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: 966b6675e702 ("USB: serial: add Moxa UPORT 12XX/14XX/16XX
driver")
Cc: stable <stable@vger.kernel.org> # v3.14
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/serial/mxuport.c