netfilter: qtaguid: fix bad-arg handling when tagging socket
authorJP Abgrall <jpa@google.com>
Wed, 6 Jul 2011 19:05:49 +0000 (12:05 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:09:41 +0000 (12:09 -0800)
When processing args passed to the procfs ctrl, if the tag was
invalid it would exit without releasing the spin_lock...
Bye bye scheduling.

Signed-off-by: JP Abgrall <jpa@google.com>
Change-Id: Ic1480ae9d37bba687586094cf6d0274db9c5b28a

net/netfilter/xt_qtaguid.c

index 3b5ab3f..3cacec0 100644 (file)
@@ -1065,7 +1065,7 @@ static int qtaguid_ctrl_parse(const char *input, int count)
        goto ok;
 
 err_unlock:
-       if (!sock_tag_entry)
+       if (sock_tag_entry)
                spin_unlock_irqrestore(&sock_tag_list_lock, flags);
 err:
 ok: