[PATCH] fix gl_skb/skb type error in genelink driver in usbnet
authorlepton <ytht.net@gmail.com>
Mon, 22 Aug 2005 06:02:39 +0000 (14:02 +0800)
committerChris Wright <chrisw@osdl.org>
Mon, 29 Aug 2005 16:55:12 +0000 (09:55 -0700)
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 <david-b@pacbell.net>
Signed-off-by: Chris Wright <chrisw@osdl.org>
drivers/usb/net/usbnet.c

index 4cbb408af72749b5f2f432c10bac69ebe4e2e1b7..0b8c25c3f432134bf1c769711a680728874990df 100644 (file)
@@ -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