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:
parent
bcc6d47903
commit
872674858f
1 changed files with 2 additions and 0 deletions
|
@ -5247,6 +5247,8 @@ int __netdev_update_features(struct net_device *dev)
|
||||||
u32 features;
|
u32 features;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
|
ASSERT_RTNL();
|
||||||
|
|
||||||
features = netdev_get_wanted_features(dev);
|
features = netdev_get_wanted_features(dev);
|
||||||
|
|
||||||
if (dev->netdev_ops->ndo_fix_features)
|
if (dev->netdev_ops->ndo_fix_features)
|
||||||
|
|
Loading…
Reference in a new issue