projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50ff06d
)
[PATCH] nmclan_cs: dereferencing skb after netif_rx()
author
Florin Malita
<
[email protected]
>
Sun, 4 Jun 2006 09:51:26 +0000
(
02:51
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 5 Jun 2006 19:29:15 +0000
(12:29 -0700)
From: Florin Malita <
[email protected]
>
The skb may be gone after netif_rx(), we can't use 'skb->len' to update the
stats. 'pkt_len' should work instead.
Coverity CID: 911.
Signed-off-by: Florin Malita <
[email protected]
>
Cc: Dominik Brodowski <
[email protected]
>
Acked-by: Jeff Garzik <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/net/pcmcia/nmclan_cs.c
patch
|
blob
|
history
diff --git
a/drivers/net/pcmcia/nmclan_cs.c
b/drivers/net/pcmcia/nmclan_cs.c
index 4260c2128f4722c61cc267fc6a0290ebde330be9..a8f6bfc96fd28cbdd4cb75c0c60517fa54d84709 100644
(file)
--- a/
drivers/net/pcmcia/nmclan_cs.c
+++ b/
drivers/net/pcmcia/nmclan_cs.c
@@
-1204,7
+1204,7
@@
static int mace_rx(struct net_device *dev, unsigned char RxCnt)
dev->last_rx = jiffies;
lp->linux_stats.rx_packets++;
- lp->linux_stats.rx_bytes +=
skb->
len;
+ lp->linux_stats.rx_bytes +=
pkt_
len;
outb(0xFF, ioaddr + AM2150_RCV_NEXT); /* skip to next frame */
continue;
} else {