diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-01-17 06:47:12 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-02 09:53:29 -0800 |
commit | 7b4fec3251eb3c770dc8baa79df8eec5403dabb2 (patch) | |
tree | 7a3b13d0357245475654290b45e982fdc86ea11a /net | |
parent | f8b9d6d4e097b38b199253243b361bee9795cd14 (diff) |
NET: net_namespace, fix lock imbalance
commit 357f5b0b91054ae23385ea4b0634bb8b43736e83 upstream.
register_pernet_gen_subsys omits mutex_unlock in one fail path.
Fix it.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | 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 1895a4ca9c4..0bc398c407f 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); |