linux-stable/drivers/net/usb
Georgi Valkov f2a186a44e ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback
commit 63e4b45c82 upstream.

When rx_buf is allocated we need to account for IPHETH_IP_ALIGN,
which reduces the usable size by 2 bytes. Otherwise we have 1512
bytes usable instead of 1514, and if we receive more than 1512
bytes, ipheth_rcvbulk_callback is called with status -EOVERFLOW,
after which the driver malfunctiones and all communication stops.

Resolves ipheth 2-1:4.2: ipheth_rcvbulk_callback: urb status: -75

Fixes: f33d9e2b48 ("usbnet: ipheth: fix connectivity with iOS 14")
Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Link: https://lore.kernel.org/all/B60B8A4B-92A0-49B3-805D-809A2433B46C@abv.bg/
Link: https://lore.kernel.org/all/24851bd2769434a5fc24730dce8e8a984c5a4505.1643699778.git.jan.kiszka@siemens.com/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-05 12:35:36 +01:00
..
aqc111.c
aqc111.h
asix.h
asix_common.c
asix_devices.c
ax88172a.c
ax88179_178a.c net: usb: ax88179_178a: initialize local variables before use 2021-05-07 10:51:37 +02:00
catc.c
cdc-phonet.c net: cdc-phonet: fix data-interface release on probe failure 2021-03-30 14:35:27 +02:00
cdc_eem.c net: cdc_eem: fix tx fixup skb leak 2021-06-23 14:41:26 +02:00
cdc_ether.c r8152: Add Lenovo Powered USB-C Travel Hub 2021-01-19 18:26:13 +01:00
cdc_mbim.c net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 2021-09-22 12:26:44 +02:00
cdc_ncm.c net: cdc_ncm: Allow for dwNtbOutMaxSize to be unset or zero 2021-12-14 14:49:03 +01:00
cdc_subset.c
ch9200.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c usb: hso: remove the bailout parameter 2021-10-06 15:42:38 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback 2022-02-05 12:35:36 +01:00
kalmia.c
kaweth.c
Kconfig lan78xx: select CRC32 2021-10-27 09:54:25 +02:00
lan78xx.c net: usb: lan78xx: add Allied Telesis AT29M2-AF 2021-12-29 12:23:33 +01:00
lan78xx.h
lg-vl600.c
Makefile
mcs7830.c net: mcs7830: handle usb read errors properly 2022-01-27 09:19:37 +01:00
net1080.c
pegasus.c net: usb: pegasus: Do not drop long Ethernet frames 2022-01-05 12:37:44 +01:00
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: allow qmimux add/del with master up 2021-03-17 17:03:35 +01:00
r8152.c r8152: Fix potential PM refcount imbalance 2021-08-08 09:04:07 +02:00
rndis_host.c rndis_host: support Hytera digital radios 2022-01-11 15:23:33 +01:00
rtl8150.c net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails 2020-10-14 10:33:06 +02:00
sierra_net.c
smsc75xx.c net: usb: fix possible use-after-free in smsc75xx_bind 2021-06-23 14:41:26 +02:00
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c
sr9700.h
sr9800.c
sr9800.h
usbnet.c usbnet: fix error return code in usbnet_probe() 2021-11-02 19:46:11 +01:00
zaurus.c