diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
commit | bbb20089a3275a19e475dbc21320c3742e3ca423 (patch) | |
tree | 216fdc1cbef450ca688135c5b8969169482d9a48 /net/ipv4/devinet.c | |
parent | 3e48e656903e9fd8bc805c6a2c4264d7808d315b (diff) | |
parent | 657a77fa7284d8ae28dfa48f1dc5d919bf5b2843 (diff) |
Merge branch 'dmaengine' into async-tx-next
Conflicts:
crypto/async_tx/async_xor.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/pci.c
drivers/md/raid5.c
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 126bb911880f..3863c3a4223f 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -1347,7 +1347,8 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write, | |||
1347 | struct net *net = ctl->extra2; | 1347 | struct net *net = ctl->extra2; |
1348 | 1348 | ||
1349 | if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) { | 1349 | if (valp != &IPV4_DEVCONF_DFLT(net, FORWARDING)) { |
1350 | rtnl_lock(); | 1350 | if (!rtnl_trylock()) |
1351 | return restart_syscall(); | ||
1351 | if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) { | 1352 | if (valp == &IPV4_DEVCONF_ALL(net, FORWARDING)) { |
1352 | inet_forward_change(net); | 1353 | inet_forward_change(net); |
1353 | } else if (*valp) { | 1354 | } else if (*valp) { |