net: add RTNL_ASSERT in __netdev_update_features()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 12 Apr 2011 09:56:38 +0000 (09:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Apr 2011 21:36:07 +0000 (14:36 -0700)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index d1aebf7c64940b6a811c3a59f1668b3d6798b3e4..f523eee3141cc682f563d41bb8aa575916257bba 100644 (file)
@@ -5247,6 +5247,8 @@ int __netdev_update_features(struct net_device *dev)
        u32 features;
        int err = 0;
 
+       ASSERT_RTNL();
+
        features = netdev_get_wanted_features(dev);
 
        if (dev->netdev_ops->ndo_fix_features)