USB: serial: cyberjack: fix NULL-deref at open
commitb2aa55142ea5cff7217f2633e85602d2279ff92e
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:39:40 +0000 (3 16:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:15 +0000 (12 11:39 +0100)
tree53c7ced8c1eb98b222feb64201cf27cff06aadff
parent4de811c61ac562295adae03c06f581c167efd307
USB: serial: cyberjack: fix NULL-deref at open

commit 3dca01114dcecb1cf324534cd8d75fd1306a516b upstream.

Fix NULL-pointer dereference when clearing halt at open should the device
lack a bulk-out endpoint.

Unable to handle kernel NULL pointer dereference at virtual address 00000030
...
PC is at cyberjack_open+0x40/0x9c [cyberjack]

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/cyberjack.c