mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 14:36:51 +07:00
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
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user