Skip to contentSkip to conversation

fix gl_skb/skb type error in genelink driver in usbnet in 2.6

PATCH In review lepton 2 participants 2 messages Aug 22, 2005 USB

lore
Share & tools
lore

lepton

author
#0 lore raw

PATCH 1/1 fix gl_skb/skb type error in genelink driver in usbnet in 2.6

Hi!
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.

See the following patch.

drivers/usb/net/usbnet.c +1 -1
diff -pruNX linux-2.6-curr/Documentation/dontdiff linux-2.6-curr/drivers/usb/net/usbnet.c linux-2.6-curr-lepton/drivers/usb/net/usbnet.c
@@ -1922,7 +1922,7 @@ static int genelink_rx_fixup (struct usb
 
 			// 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
#1 lore raw
Quoted 6 lines

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.

See the following patch.

Looks right to me; thanks! Would you happen to know if this GL620a chip is still manufactured?

If this oops fix doesn't make 2.6.13, I'll roll this change into the upcoming split of "usbnet" into eight minidrivers around a shared core library.

- Dave

Quoted 12 lines
drivers/usb/net/usbnet.c +1 -1
@@ -1922,7 +1922,7 @@ static int genelink_rx_fixup (struct usb
 
 			// 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