From: Eric Dumazet Date: Fri, 6 Nov 2009 00:23:01 +0000 (+0000) Subject: can: should not use __dev_get_by_index() without locks X-Git-Tag: v2.6.32-rc7~58^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6755aebaaf9fc5416acfd4578ab7a1e122ecbc74;p=pandora-kernel.git can: should not use __dev_get_by_index() without locks bcm_proc_getifname() is called with RTNL and dev_base_lock not held. It calls __dev_get_by_index() without locks, and this is illegal (might crash) Close the race by holding dev_base_lock and copying dev->name in the protected section. Signed-off-by: Eric Dumazet Signed-off-by: Oliver Hartkopp Signed-off-by: David S. Miller --- Reading git-diff-tree failed