1
0
Fork 0
alistair23-linux/drivers/usb/atm
Johan Hovold 836924c2da USB: atm: ueagle-atm: add missing endpoint check
commit 09068c1ad5 upstream.

Make sure that the interrupt interface has an endpoint before trying to
access its endpoint descriptors to avoid dereferencing a NULL pointer.

The driver binds to the interrupt interface with interface number 0, but
must not assume that this interface or its current alternate setting are
the first entries in the corresponding configuration arrays.

Fixes: b72458a80c ("[PATCH] USB: Eagle and ADI 930 usb adsl modem driver")
Cc: stable <stable@vger.kernel.org>     # 2.6.16
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191210112601.3561-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-17 19:55:44 +01:00
..
Kconfig usb: remove redundant 'default n' from Kconfig-s 2019-05-21 10:06:22 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cxacru.c USB: atm: cxacru: convert to use dev_groups 2019-08-09 07:55:45 +02:00
speedtch.c usb: usbatm: Convert timers to use timer_setup() 2017-11-21 15:46:44 -08:00
ueagle-atm.c USB: atm: ueagle-atm: add missing endpoint check 2019-12-17 19:55:44 +01:00
usbatm.c usb: usbatm: Convert timers to use timer_setup() 2017-11-21 15:46:44 -08:00
usbatm.h USB: atm: Remove redundant license text 2017-11-04 11:55:38 +01:00
xusbatm.c USB: atm: Remove redundant license text 2017-11-04 11:55:38 +01:00