Commit b0f3debc authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Use rtnl_lock_killable() in register_netdev()

This patch adds rtnl_lock_killable() to one of hot path
using rtnl_lock().
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79ffdfc6
......@@ -8018,7 +8018,8 @@ int register_netdev(struct net_device *dev)
{
int err;
rtnl_lock();
if (rtnl_lock_killable())
return -EINTR;
err = register_netdevice(dev);
rtnl_unlock();
return err;
......
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