forked from Minki/linux
ppp: release rtnl mutex when interface creation fails
Add missing rtnl_unlock() in the error path of ppp_create_interface().
Fixes: 58a89ecaca
("ppp: fix lockdep splat in ppp_dev_uninit()")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4d06dd537f
commit
6faac63a69
@ -2816,6 +2816,7 @@ static struct ppp *ppp_create_interface(struct net *net, int unit,
|
||||
|
||||
out2:
|
||||
mutex_unlock(&pn->all_ppp_mutex);
|
||||
rtnl_unlock();
|
||||
free_netdev(dev);
|
||||
out1:
|
||||
*retp = ret;
|
||||
|
Loading…
Reference in New Issue
Block a user