From: Eric Dumazet Date: Fri, 19 Mar 2010 04:16:45 +0000 (-0700) Subject: net: Potential null skb->dev dereference X-Git-Tag: v2.6.34-rc3~84^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0641e4fbf2f824faee00ea74c459a088d94905fd;p=pandora-kernel.git net: Potential null skb->dev dereference When doing "ifenslave -d bond0 eth0", there is chance to get NULL dereference in netif_receive_skb(), because dev->master suddenly becomes NULL after we tested it. We should use ACCESS_ONCE() to avoid this (or rcu_dereference()) Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed