Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@redhat.com>2003-11-20 04:46:23 -0500
committerJeff Garzik <jgarzik@redhat.com>2003-11-20 04:46:23 -0500
commit9bd9c5e1134cbd3623df378fdc85ced70a27983e (patch)
treebc7857805a377bb5db5c22ea5debeccb66c7085f
parent482f6240cb78a27fa24d3fbeccd6865af6f9ec9b (diff)
[netdrvr sis190] fix oopsable bug in TX path, related to skb_padto return
Caught by Francois Romieu.
-rw-r--r--drivers/net/sis190.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index aabe5f3bdd71..da4ea1b59eaa 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -949,7 +949,8 @@ SiS190_start_xmit(struct sk_buff *skb, struct net_device *dev)
drop_tx:
tp->stats.tx_dropped++;
- dev_kfree_skb(skb);
+ if (skb)
+ dev_kfree_skb(skb);
return 0;
}