linux-uconsole/drivers/net/usb
Johan Hovold a0fa9c7563 r8152: add missing endpoint sanity check
[ Upstream commit 86f3f4cd53 ]

Add missing endpoint sanity check to probe in order to prevent a
NULL-pointer dereference (or slab out-of-bounds access) when retrieving
the interrupt-endpoint bInterval on ndo_open() in case a device lacks
the expected endpoints.

Fixes: 40a82917b1 ("net/usb/r8152: enable interrupt transfer")
Cc: hayeswang <hayeswang@realtek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:21:35 +01:00
..
asix.h
asix_common.c
asix_devices.c net: usb: asix: init MAC address buffers 2019-07-26 09:14:15 +02:00
ax88172a.c ax88172a: fix information leak on short answers 2019-11-20 18:45:11 +01:00
ax88179_178a.c
catc.c
cdc-phonet.c
cdc_eem.c
cdc_ether.c r8152: add device id for Lenovo ThinkPad USB-C Dock Gen 2 2019-11-10 11:27:54 +01:00
cdc_mbim.c
cdc_ncm.c net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size() 2019-11-24 08:19:10 +01:00
cdc_subset.c
ch9200.c
cx82310_eth.c cx82310_eth: fix a memory leak bug 2019-09-10 10:33:47 +01:00
dm9601.c
gl620a.c
hso.c hso: fix NULL-deref on tty open 2019-10-07 18:57:20 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c usbnet: ipheth: fix racing condition 2019-06-19 08:18:04 +02:00
kalmia.c net: kalmia: fix memory leaks 2019-09-10 10:33:48 +01:00
kaweth.c
Kconfig
lan78xx.c net: usb: lan78xx: limit size of local TSO packets 2020-01-23 08:21:35 +01:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c net: usb: pegasus: fix improper read if get_registers() fail 2019-08-25 10:47:50 +02:00
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add support for Foxconn T77W968 LTE modules 2019-11-20 18:45:12 +01:00
r8152.c r8152: add missing endpoint sanity check 2020-01-23 08:21:35 +01:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c usbnet: smsc95xx: fix rx packet alignment 2019-02-12 19:47:00 +01:00
smsc95xx.h
sr9700.c
sr9700.h
sr9800.c net: usb: sr9800: fix uninitialized local variable 2019-11-06 13:06:26 +01:00
sr9800.h
usbnet.c usbnet: sanity checking of packet sizes and device mtu 2019-10-05 13:09:30 +02:00
zaurus.c