summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-05-13 19:02:50 +0200
committerDavid S. Miller <davem@davemloft.net>2009-05-19 07:16:00 +0200
commit496a60cdcd5d0d884dddf6c3b4ea912923a70f13 (patch)
treedd7c3e4e61d4c4bead3c7bd3db17401431e6d87e /drivers/net/ifb.c
parentnet: Fix ipoib rtnl_lock sysfs deadlock. (diff)
downloadlinux-496a60cdcd5d0d884dddf6c3b4ea912923a70f13.tar.xz
linux-496a60cdcd5d0d884dddf6c3b4ea912923a70f13.zip
net: FIX bonding sysfs rtnl_lock deadlock
Sysfs files for a network device can not unconditionally take the rtnl_lock as the bonding sysfs files do. If someone accesses those sysfs files while the network device is being unregistered with the rtnl_lock held we will deadlock. So use trylock and restart_syscall to avoid this problem. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
0 files changed, 0 insertions, 0 deletions