Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a66207121f85c54a3df4d347a3c5bdf6cb154b09
Commit:     a66207121f85c54a3df4d347a3c5bdf6cb154b09
Parent:     aebcf82c1fe9231be5cb4f9c1362d5db39e7d7b2
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 19:21:56 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 14:57:43 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 4ced383..7153e94 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to