mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-08 10:25:20 +02:00
usbnet: ipheth: do not stop RX on failing RX callback
[ Upstream commit 74efed51e0
]
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>
This commit is contained in:
parent
9c8c230e2e
commit
4d1cfa3afb
|
@ -308,7 +308,6 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
|
||||||
if (retval != 0) {
|
if (retval != 0) {
|
||||||
dev_err(&dev->intf->dev, "%s: callback retval: %d\n",
|
dev_err(&dev->intf->dev, "%s: callback retval: %d\n",
|
||||||
__func__, retval);
|
__func__, retval);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rx_submit:
|
rx_submit:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user