From: lepton Date: Mon, 22 Aug 2005 06:02:39 +0000 (+0800) Subject: [PATCH] fix gl_skb/skb type error in genelink driver in usbnet X-Git-Tag: v2.6.12.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1bfbc0786fdc9ba511d0136f6417736bdc4cc6;p=thirdparty%2Fkernel%2Fstable.git [PATCH] fix gl_skb/skb type error in genelink driver in usbnet I think there is a type error when port genelink driver to 2.6.. With this error, a linux host will panic when it link with a windows host. Cc: David Brownell Signed-off-by: Chris Wright --- diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 4cbb408af7274..0b8c25c3f4321 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c @@ -1922,7 +1922,7 @@ static int genelink_rx_fixup (struct usbnet *dev, struct sk_buff *skb) // copy the packet data to the new skb memcpy(skb_put(gl_skb, size), packet->packet_data, size); - skb_return (dev, skb); + skb_return (dev, gl_skb); } // advance to the next packet