projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cfcbe9
)
SMC911X: Fix using of dereferenced skb after netif_rx
author
Wang Chen
<wangchen@cn.fujitsu.com>
Tue, 4 Dec 2007 02:01:37 +0000
(10:01 +0800)
committer
Jeff Garzik
<jeff@garzik.org>
Tue, 4 Dec 2007 19:53:43 +0000
(14:53 -0500)
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/smc911x.c
patch
|
blob
|
history
diff --git
a/drivers/net/smc911x.c
b/drivers/net/smc911x.c
index
1a3d80b
..
76cc1d3
100644
(file)
--- a/
drivers/net/smc911x.c
+++ b/
drivers/net/smc911x.c
@@
-1299,9
+1299,9
@@
smc911x_rx_dma_irq(int dma, void *data)
PRINT_PKT(skb->data, skb->len);
dev->last_rx = jiffies;
skb->protocol = eth_type_trans(skb, dev);
- netif_rx(skb);
dev->stats.rx_packets++;
dev->stats.rx_bytes += skb->len;
+ netif_rx(skb);
spin_lock_irqsave(&lp->lock, flags);
pkts = (SMC_GET_RX_FIFO_INF() & RX_FIFO_INF_RXSUSED_) >> 16;