Commit 2c522c72 authored by Guillaume Nault's avatar Guillaume Nault Committed by Tim Gardner

ppp: release rtnl mutex when interface creation fails

BugLink: http://bugs.launchpad.net/bugs/1573034

[ Upstream commit 6faac63a ]

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 60bdd4af
...@@ -2803,6 +2803,7 @@ static struct ppp *ppp_create_interface(struct net *net, int unit, ...@@ -2803,6 +2803,7 @@ static struct ppp *ppp_create_interface(struct net *net, int unit,
out2: out2:
mutex_unlock(&pn->all_ppp_mutex); mutex_unlock(&pn->all_ppp_mutex);
rtnl_unlock();
free_netdev(dev); free_netdev(dev);
out1: out1:
*retp = ret; *retp = ret;
......
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