net: add RTNL_ASSERT in __netdev_update_features()

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Michał Mirosław 2011-04-12 09:56:38 +00:00 committed by David S. Miller
parent bcc6d47903
commit 872674858f

View 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)