ChangeSet 1.1123.18.6, 2003/08/11 15:12:40-07:00, oliver@neukum.org [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