Skip to content

Commit

Permalink
net: add RTNL_ASSERT in __netdev_update_features()
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michał Mirosław authored and David S. Miller committed Apr 12, 2011
1 parent bcc6d47 commit 8726748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8726748

Please sign in to comment.