From: Eric Dumazet Date: Thu, 23 Sep 2010 21:46:03 +0000 (+0000) Subject: net: fix rcu use in ip_route_output_slow X-Git-Tag: v2.6.37-rc1~147^2~352 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83180af0b0ea166adf8249f4513beb7355f9b4c9;p=pandora-kernel.git net: fix rcu use in ip_route_output_slow __in_dev_get_rtnl(dev_out) is called while RTNL is not held, thus triggers a lockdep fault. At this point, we only perform a raw test of dev_out->ip_ptr being NULL, we dont need to make sure ip_ptr cant changed right after. We can use rcu_dereference_raw() for this. Reported-by: Andrew Morton Acked-by: Paul E. McKenney Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed