commit | 6755aebaaf9fc5416acfd4578ab7a1e122ecbc74 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Fri Nov 06 00:23:01 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Nov 08 00:33:43 2009 -0800 |
tree | 09f23419b097b15e7c36954cb98bdf28cdfa5af1 | |
parent | cc05368c52fed7d9efa0f56c5270e95bb569713e [diff] |
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 <eric.dumazet@gmail.com> Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>