android_kernel_oneplus_msm8998/drivers/usb/misc
Johan Hovold a7712869e2 USB: lvtest: fix NULL-deref at probe
commit 1dc56c52d2484be09c7398a5207d6b11a4256be9 upstream.

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should the probed device lack endpoints.

Note that this driver does not bind to any devices by default.

Fixes: ce21bfe603 ("USB: Add LVS Test device driver")
Cc: Pratyush Anand <pratyush.anand@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-30 09:35:16 +02:00
..
sisusbvga USB: sisusb_con.c: move assignment out of if () block 2015-05-10 16:01:12 +02:00
adutux.c
appledisplay.c USB: appledisplay: Deletion of a check before backlight_device_unregister() 2015-03-18 16:56:40 +01:00
chaoskey.c USB: chaoskey read offset bug 2015-10-04 11:01:13 +01:00
cypress_cy7c63.c
cytherm.c
ehset.c
emi26.c
emi62.c
ezusb.c
ftdi-elan.c usb: misc: ftdi-elan: Simplify return statement 2015-08-05 12:37:21 -07:00
idmouse.c
iowarrior.c USB: iowarrior: fix NULL-deref in write 2017-03-18 19:09:58 +08:00
isight_firmware.c
Kconfig usb/misc: fix chaoskey build, needs HW_RANDOM 2015-04-03 19:03:15 +02:00
ldusb.c usb, HID: Remove Vernier devices from lsusb and hid_ignore_list 2015-06-01 14:44:08 +02:00
legousbtower.c usb: misc: legousbtower: Fix NULL pointer deference 2016-10-07 15:23:47 +02:00
lvstest.c USB: lvtest: fix NULL-deref at probe 2017-03-30 09:35:16 +02:00
Makefile usb: Add driver for Altus Metrum ChaosKey device (v2) 2015-03-26 10:47:11 +01:00
rio500.c
rio500_usb.h
trancevibrator.c
usb3503.c usb: misc: usb3503: Use i2c_add_driver helper macro 2015-10-24 19:53:53 -07:00
usb_u132.h
usblcd.c
usbled.c
usbsevseg.c
usbtest.c usb: misc: usbtest: add fix for driver hang 2016-09-07 08:32:38 +02:00
uss720.c USB: uss720: fix NULL-deref at probe 2017-03-30 09:35:16 +02:00
yurex.c