]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usbnet: ipheth: do not stop RX on failing RX callback
authorFoster Snowhill <forst@pen.gy>
Tue, 6 Aug 2024 17:28:08 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:04 +0000 (19:24 +0200)
commit4d1cfa3afb8627435744ecdc6d8b58bc72ee0f4c
tree060284e0efcc10f0e10ea4b8ab8b49bac9465a75
parent9c8c230e2e15b8a36ce7832253841a9542cac216
usbnet: ipheth: do not stop RX on failing RX callback

[ Upstream commit 74efed51e0a4d62f998f806c307778b47fc73395 ]

RX callbacks can fail for multiple reasons:

* Payload too short
* Payload formatted incorrecly (e.g. bad NCM framing)
* Lack of memory

None of these should cause the driver to seize up.

Make such failures non-critical and continue processing further
incoming URBs.

Signed-off-by: Foster Snowhill <forst@pen.gy>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/ipheth.c