ChangeSet 1.1123.18.6, 2003/08/11 15:12:40-07:00, [EMAIL PROTECTED]
[PATCH] USB: genelink_tx_fixup fails to check for memory allocation failure
this can oops.
- check for mem alloc failure
drivers/usb/net/usbnet.c | 2 ++
1 files changed, 2 insertions(+)
diff -Nru a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
--- a/drivers/usb/net/usbnet.c Fri Aug 15 10:47:45 2003
+++ b/drivers/usb/net/usbnet.c Fri Aug 15 10:47:45 2003
@@ -986,6 +986,8 @@
skb2 = skb_copy_expand (skb, (4 + 4*1) , padlen, flags);
dev_kfree_skb_any (skb);
skb = skb2;
+ if (!skb)
+ return NULL;
}
// attach the packet count to the header
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel