diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-05-13 18:59:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-19 07:15:58 +0200 |
commit | 9b8adb5ea005fe73acd5dd58f9bd47eafa74c9d1 (patch) | |
tree | ee83f80abf9d3fab5b2ce66648a024e0d44fd770 /net/bridge | |
parent | net: FIX ipv6_forward sysctl restart (diff) | |
download | linux-9b8adb5ea005fe73acd5dd58f9bd47eafa74c9d1.tar.xz linux-9b8adb5ea005fe73acd5dd58f9bd47eafa74c9d1.zip |
net: Fix devinet_sysctl_forward
sysctls are unregistered with the rntl_lock held making
it unsafe to unconditionally grab the the rtnl_lock. Instead
we need to call rtnl_trylock and restart the system call
if we can not grab it. Otherwise we could deadlock at unregistration
time.
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions