netns: fix unbalanced spin_lock on error
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 13 May 2015 11:43:09 +0000 (13:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2015 02:36:31 +0000 (22:36 -0400)
commit0c58a2db91747c841d042b1d56615fb1eaf138c7
treee56a197b1a9446464adad8eb81b669bd4f0456b9
parentef7f3a5c7149ad2dbd1d8a71d0aa88a02d1dbcb8
netns: fix unbalanced spin_lock on error

Unlock was missing on error path.

Fixes: 95f38411df05 ("netns: use a spin_lock to protect nsid management")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c