Patch "usbnet: ipheth: do not stop RX on failing RX callback" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    usbnet: ipheth: do not stop RX on failing RX callback

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     usbnet-ipheth-do-not-stop-rx-on-failing-rx-callback.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0a41deae4a960d61b96074ee3b3a041757ab70c0
Author: Foster Snowhill <forst@xxxxxx>
Date:   Tue Aug 6 19:28:08 2024 +0200

    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@xxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c
index f04c7bf79665..cdc72559790a 100644
--- a/drivers/net/usb/ipheth.c
+++ b/drivers/net/usb/ipheth.c
@@ -308,7 +308,6 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
 	if (retval != 0) {
 		dev_err(&dev->intf->dev, "%s: callback retval: %d\n",
 			__func__, retval);
-		return;
 	}
 
 rx_submit:




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux