summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/dev.c
diff options
context:
space:
mode:
authorEric Dumazet2009-11-06 01:23:01 +0100
committerDavid S. Miller2009-11-08 09:33:43 +0100
commit6755aebaaf9fc5416acfd4578ab7a1e122ecbc74 (patch)
tree09f23419b097b15e7c36954cb98bdf28cdfa5af1 /drivers/net/can/dev.c
parenthisax: remove bad udelay call to fix build error on ARM (diff)
downloadkernel-qcow2-linux-6755aebaaf9fc5416acfd4578ab7a1e122ecbc74.tar.gz
kernel-qcow2-linux-6755aebaaf9fc5416acfd4578ab7a1e122ecbc74.tar.xz
kernel-qcow2-linux-6755aebaaf9fc5416acfd4578ab7a1e122ecbc74.zip
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>
Diffstat (limited to 'drivers/net/can/dev.c')
0 files changed, 0 insertions, 0 deletions