summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2016-03-07 19:36:44 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-07 22:11:31 +0100
commit6faac63a6986f29ef39827f460edd3a5ba64ad5c (patch)
tree9009dfde69b03b2fc4efdebb2c851b6bc2d6a24f /drivers/net
parentcdc_ncm: do not call usbnet_link_change from cdc_ncm_bind (diff)
downloadlinux-6faac63a6986f29ef39827f460edd3a5ba64ad5c.tar.xz
linux-6faac63a6986f29ef39827f460edd3a5ba64ad5c.zip
ppp: release rtnl mutex when interface creation fails
Add missing rtnl_unlock() in the error path of ppp_create_interface(). Fixes: 58a89ecaca53 ("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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ppp/ppp_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index e8a5936289c5..d61da9ece3ba 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -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;