Skip to content

Commit

Permalink
ppp: release rtnl mutex when interface creation fails
Browse files Browse the repository at this point in the history
Add missing rtnl_unlock() in the error path of ppp_create_interface().

Fixes: 58a89ec ("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>
  • Loading branch information
Guillaume Nault authored and David S. Miller committed Mar 7, 2016
1 parent 4d06dd5 commit 6faac63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ppp/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6faac63

Please sign in to comment.