linux/drivers/net/usb
Johan Hovold 9a70de92dd net: lan78xx: replace bogus endpoint lookup
[ Upstream commit ea060b3526 ]

Drop the bogus endpoint-lookup helper which could end up accepting
interfaces based on endpoints belonging to unrelated altsettings.

Note that the returned bulk pipes and interrupt endpoint descriptor
were never actually used. Instead the bulk-endpoint numbers are
hardcoded to 1 and 2 (matching the specification), while the interrupt-
endpoint descriptor was assumed to be the third descriptor created by
USB core.

Try to bring some order to this by dropping the bogus lookup helper and
adding the missing endpoint sanity checks while keeping the interrupt-
descriptor assumption for now.

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-08-11 15:32:34 +02:00
..
asix_common.c
asix_devices.c
asix.h
ax88172a.c ax88172a: fix ax88172a_unbind() failures 2020-07-29 10:16:49 +02:00
ax88179_178a.c net: usb: ax88179_178a: fix packet alignment padding 2020-06-30 23:17:04 -04:00
catc.c
cdc_eem.c
cdc_ether.c r8152: support additional Microsoft Surface Ethernet Adapter variant 2020-06-03 08:19:20 +02: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
cdc-phonet.c
ch9200.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c usb: hso: check for return value in hso_serial_common_create() 2020-08-11 15:32:33 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c
kaweth.c
Kconfig
lan78xx.c net: lan78xx: replace bogus endpoint lookup 2020-08-11 15:32:34 +02:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add support for Quectel EG95 LTE modem 2020-07-22 09:31:59 +02:00
r8152.c r8152: support additional Microsoft Surface Ethernet Adapter variant 2020-06-03 08:19:20 +02:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c smsc95xx: avoid memory leak in smsc95xx_bind 2020-07-16 08:17:24 +02: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
zaurus.c