exynos-linux-stable/drivers/usb/atm
Johan Hovold 0847df7923 USB: atm: ueagle-atm: add missing endpoint check
commit 09068c1ad53fb077bdac288869dec2435420bdc4 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-21 10:41:53 +01:00
..
cxacru.c usb: atm: cxacru: don't print on ENOMEM 2016-08-30 19:17:36 +02:00
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile USB: usbatm: remove CONFIG_USB_DEBUG dependancy 2013-07-23 16:32:36 -07:00
speedtch.c usb: atm: speedtch: don't print on ENOMEM 2016-08-30 19:17:36 +02:00
ueagle-atm.c USB: atm: ueagle-atm: add missing endpoint check 2019-12-21 10:41:53 +01:00
usbatm.c usb: atm: usbatm: don't print on ENOMEM 2016-08-30 19:17:36 +02:00
usbatm.h usbatm: Fix dynamic_debug / ratelimited atm_dbg and atm_rldbg macros 2013-10-29 16:50:52 -07:00
xusbatm.c USB: xusbatm.c: move assignment out of if () block 2015-05-10 16:01:13 +02:00