提交 a6620712 编写于 作者: H Herbert Xu 提交者: David S. Miller

[NET]: Check RTNL status in unregister_netdevice

The caller must hold the RTNL so let's check it in unregister_netdevice.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 aebcf82c
......@@ -3971,6 +3971,8 @@ void synchronize_net(void)
void unregister_netdevice(struct net_device *dev)
{
ASSERT_RTNL();
rollback_registered(dev);
/* Finish processing unregister after unlock */
net_set_todo(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册