mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue