Commit 9bd9c5e1 authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr sis190] fix oopsable bug in TX path, related to skb_padto return

Caught by Francois Romieu.
parent 482f6240
...@@ -949,6 +949,7 @@ SiS190_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -949,6 +949,7 @@ SiS190_start_xmit(struct sk_buff *skb, struct net_device *dev)
drop_tx: drop_tx:
tp->stats.tx_dropped++; tp->stats.tx_dropped++;
if (skb)
dev_kfree_skb(skb); dev_kfree_skb(skb);
return 0; return 0;
} }
......
Markdown is supported
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