]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: spcp8x5: fix NULL-deref at open
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:40:02 +0000 (16:40 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 4 Jan 2017 09:43:57 +0000 (10:43 +0100)
commitaebdf5c7c1273d238e3c76f34a285f1de863d3c8
tree57faa1bd5e322b6d7f50d1ccbb1dd1671643f13e
parentb31567bc78183a8c767a4bd2f1af83965c70c894
USB: serial: spcp8x5: fix NULL-deref at open

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

Unable to handle kernel NULL pointer dereference at virtual address 00000030
...
PC is at spcp8x5_open+0x30/0xd0 [spcp8x5]

Fixes: a027aac16c1b ("USB: add usb-serial spcp8x5 driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/spcp8x5.c