]> err.no Git - linux-2.6/commit
[PATCH] nmclan_cs: dereferencing skb after netif_rx()
authorFlorin Malita <fmalita@gmail.com>
Sun, 4 Jun 2006 09:51:26 +0000 (02:51 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 5 Jun 2006 19:29:15 +0000 (12:29 -0700)
commit6f258910733a8dbde368acc2ede4b8184ff0e09a
tree1c56af63b46fc80a8ebe509c0be1deb94f2f5849
parent50ff06d1546d7f492068dd5196c26bf2cc5080b1
[PATCH] nmclan_cs: dereferencing skb after netif_rx()

From: Florin Malita <fmalita@gmail.com>

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 <fmalita@gmail.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/pcmcia/nmclan_cs.c