Commit 23ba0799 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by David S. Miller
Browse files

usbnet: fix oops in usbnet_start_xmit

This patch fixes the bug added in commit v3.1-rc7-1055-gf9b491ec

SKB can be NULL at this point, at least for cdc-ncm.

Signed-off-by: default avatarKonstantin Khlebnikov <>
Acked-by: default avatarRichard Cochran <>
Signed-off-by: default avatarDavid S. Miller <>
parent 01264108
......@@ -1057,7 +1057,8 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
unsigned long flags;
int retval;
if (skb)
// some devices want funky USB-level framing, for
// win32 driver (usually) and/or hardware quirks
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment