Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1358342 > unrolled thread

[PATCH 4.2.y-ckt 91/98] ppp: release rtnl mutex when interface creation fails

Started byKamal Mostafa <kamal@canonical.com>
First post2016-03-16 00:40 +0100
Last post2016-03-16 00:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.2.y-ckt 91/98] ppp: release rtnl mutex when interface creation fails Kamal Mostafa <kamal@canonical.com> - 2016-03-16 00:40 +0100

#1358342 — [PATCH 4.2.y-ckt 91/98] ppp: release rtnl mutex when interface creation fails

FromKamal Mostafa <kamal@canonical.com>
Date2016-03-16 00:40 +0100
Subject[PATCH 4.2.y-ckt 91/98] ppp: release rtnl mutex when interface creation fails
Message-ID<rd6Jc-EH-19@gated-at.bofh.it>
4.2.8-ckt6 -stable review patch.  If anyone has any objections, please let me know.

---8<------------------------------------------------------------

From: Guillaume Nault <g.nault@alphalink.fr>

commit 6faac63a6986f29ef39827f460edd3a5ba64ad5c upstream.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 drivers/net/ppp/ppp_generic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 3f3bda8..e82b43c 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -2790,6 +2790,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;
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web