diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-12 19:21:56 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:57:43 -0800 |
commit | a66207121f85c54a3df4d347a3c5bdf6cb154b09 (patch) | |
tree | fdcce4dae89c2c4d0e0978b5be80e99dcb54a693 /net | |
parent | aebcf82c1fe9231be5cb4f9c1362d5db39e7d7b2 (diff) | |
download | lwn-a66207121f85c54a3df4d347a3c5bdf6cb154b09.tar.gz lwn-a66207121f85c54a3df4d347a3c5bdf6cb154b09.zip |
[NET]: Check RTNL status in unregister_netdevice
The caller must hold the RTNL so let's check it in unregister_netdevice.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 4ced3836690b..7153e94f50ad 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3971,6 +3971,8 @@ void synchronize_net(void) void unregister_netdevice(struct net_device *dev) { + ASSERT_RTNL(); + rollback_registered(dev); /* Finish processing unregister after unlock */ net_set_todo(dev); |