[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1233165221-20106-3-git-send-email-jslaby@suse.cz>
Date: Wed, 28 Jan 2009 18:53:39 +0100
From: Jiri Slaby <jslaby@...e.cz>
To: greg@...ah.com
Cc: chrisw@...s-sol.org, stable@...nel.org,
linux-kernel@...r.kernel.org, Jiri Slaby <jirislaby@...il.com>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH stable-28 1/3] NET: net_namespace, fix lock imbalance
From: Jiri Slaby <jirislaby@...il.com>
register_pernet_gen_subsys omits mutex_unlock in one fail path.
Fix it.
Commit 357f5b0b91054ae23385ea4b0634bb8b43736e83.
Signed-off-by: Jiri Slaby <jirislaby@...il.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
---
net/core/net_namespace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 1895a4c..0bc398c 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -342,8 +342,8 @@ again:
rv = register_pernet_operations(first_device, ops);
if (rv < 0)
ida_remove(&net_generic_ids, *id);
- mutex_unlock(&net_mutex);
out:
+ mutex_unlock(&net_mutex);
return rv;
}
EXPORT_SYMBOL_GPL(register_pernet_gen_subsys);
--
1.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists