提交 87267485 编写于 作者: M Michał Mirosław 提交者: David S. Miller

net: add RTNL_ASSERT in __netdev_update_features()

Signed-off-by: NMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bcc6d479
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册