From: Jiri Slaby Date: Sat, 17 Jan 2009 06:47:12 +0000 (+0000) Subject: NET: net_namespace, fix lock imbalance X-Git-Tag: v2.6.29-rc3~23^2~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=357f5b0b91054ae23385ea4b0634bb8b43736e83;p=linux-2.6-omap-h63xx.git NET: net_namespace, fix lock imbalance register_pernet_gen_subsys omits mutex_unlock in one fail path. Fix it. Signed-off-by: Jiri Slaby Signed-off-by: David S. Miller --- diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 55cffad2f32..55151faaf90 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -341,8 +341,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);