Skip to content

Commit

Permalink
[PATCH] usbnet oops fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lepton authored and Linus Torvalds committed Aug 24, 2005
1 parent b1daec3 commit 2bbfb16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/net/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bbfb16

Please sign in to comment.