[NET]: Fix NULL pointer deref in checksum debugging.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 8 Dec 2005 23:21:39 +0000 (15:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2005 23:21:39 +0000 (15:21 -0800)
commit246a421207007a034da9b8cfa578bc00d16a9553
treec9703c0c19784f39b8a11a60e63499df2c388419
parent1f064a87c80c86bd3878e6633de61e8b71aa6788
[NET]: Fix NULL pointer deref in checksum debugging.

The problem I was seeing turned out to be that skb->dev is NULL when
the checksum is being completed in user context. This happens because
the reference to the device is dropped (to allow it to be released
when packets are in the queue).

Because skb->dev was NULL, the netdev_rx_csum_fault was panicing on
deref of dev->name. How about this?

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c