summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlepton <ytht.net@gmail.com>2005-08-22 14:02:39 +0800
committerChris Wright <chrisw@osdl.org>2005-08-29 09:55:12 -0700
commit7b1bfbc0786fdc9ba511d0136f6417736bdc4cc6 (patch)
treebe3406a89001e3471aab53f7743b4300fea5dc4a
parent3ad543d4783e47b413300715d790b5ad652567ff (diff)
[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 <david-b@pacbell.net> Signed-off-by: Chris Wright <chrisw@osdl.org>
-rw-r--r--drivers/usb/net/usbnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
index 4cbb408af727..0b8c25c3f432 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