Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6faac63a authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

ppp: release rtnl mutex when interface creation fails



Add missing rtnl_unlock() in the error path of ppp_create_interface().

Fixes: 58a89eca ("ppp: fix lockdep splat in ppp_dev_uninit()")
Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d06dd53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;