USB: serial: ti_usb_3410_5052: fix NULL-deref at open
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:40:03 +0000 (16:40 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 4 Jan 2017 09:43:57 +0000 (10:43 +0100)
commitef079936d3cd09e63612834fe2698eeada0d8e3f
tree71b4e7cdf62b6547f68b37b21c5f9e5775a74beb
parentcc0909248258f679c4bb4cd315565d40abaf6bc6
USB: serial: ti_usb_3410_5052: fix NULL-deref at open

Fix NULL-pointer dereference in open() should a malicious device lack
the expected endpoints:

Unable to handle kernel NULL pointer dereference at virtual address 00000030
..
[<bf06a6b0>] (ti_open [ti_usb_3410_5052]) from [<bf02e118>] (serial_port_activate+0x68/0x98 [usbserial])

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ti_usb_3410_5052.c