]> git.ipfire.org Git - people/arne_f/kernel.git/commit
[PATCH] Fix unbalanced read_unlock_bh in ctnetlink
authorPatrick McHardy <kaber@trash.net>
Tue, 13 Dec 2005 11:26:07 +0000 (12:26 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Dec 2005 00:08:55 +0000 (16:08 -0800)
commitb72c1d0c14634506a2ff740033ab1bda3c3d5d7f
tree7734b794122fd4ce0514664f513044c009a870d8
parent1e7d00170b9215692eee2628c2a7d6af86cabfa7
[PATCH] Fix unbalanced read_unlock_bh in ctnetlink

NFA_NEST calls NFA_PUT which jumps to nfattr_failure if the skb has no
room left. We call read_unlock_bh at nfattr_failure for the NFA_PUT
inside the locked section, so move NFA_NEST inside the locked section
too.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/netfilter/ip_conntrack_proto_tcp.c