diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-01-17 07:47:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-20 23:39:31 +0100 |
commit | 357f5b0b91054ae23385ea4b0634bb8b43736e83 (patch) | |
tree | 743fd89ff13eec25deb976f9466259a715161f4c /net | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff) | |
download | linux-357f5b0b91054ae23385ea4b0634bb8b43736e83.tar.xz linux-357f5b0b91054ae23385ea4b0634bb8b43736e83.zip |
NET: net_namespace, fix lock imbalance
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>
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 55cffad2f328..55151faaf90c 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); |