summaryrefslogtreecommitdiff
path: root/lib/test_bitops.c
diff options
context:
space:
mode:
authorGeorgi Valkov <gvalkov@abv.bg>2022-02-01 08:16:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-05 12:38:58 +0100
commit86186352e36db1dc8906c855fae41f2a966f3bca (patch)
treebe2aede47af54d705fb1126b14bc886ed80be2fe /lib/test_bitops.c
parent5ca77e0c50805f1274f4f6fbe53804e72e747229 (diff)
ipheth: fix EOVERFLOW in ipheth_rcvbulk_callback
commit 63e4b45c82ed1bde979da7052229a4229ce9cabf 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: f33d9e2b48a3 ("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>
Diffstat (limited to 'lib/test_bitops.c')
0 files changed, 0 insertions, 0 deletions