Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] usbnet oops fix

There's a "return the wrong SKB" error in the GL620A cable minidriver
(for "usbnet") which can oops. This would not appear when talking
Linux-to-Linux, only Linux-to-Windows (for recent Linuxes).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

lepton and committed by
Linus Torvalds
2bbfb16b b1daec30

+1 -1
+1 -1
drivers/usb/net/usbnet.c
··· 1922 1922 1923 1923 // copy the packet data to the new skb 1924 1924 memcpy(skb_put(gl_skb, size), packet->packet_data, size); 1925 - skb_return (dev, skb); 1925 + skb_return (dev, gl_skb); 1926 1926 } 1927 1927 1928 1928 // advance to the next packet