Commit a6620712 authored by Herbert Xu's avatar Herbert Xu Committed by 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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment