[NETFILTER]: Fix unbalanced read_unlock_bh in ctnetlink
authorPatrick McHardy <kaber@trash.net>
Mon, 5 Dec 2005 21:37:33 +0000 (13:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2005 21:37:33 +0000 (13:37 -0800)
commit266c8543480e2202ab63d1d604a5ca049f350cd8
tree77c754dce63f39e1f9dc2d1768ecd348c1d50c74
parent6636568cf85ef5898a892e90fcc88b61cca9ca27
[NETFILTER]: 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>
net/ipv4/netfilter/ip_conntrack_proto_tcp.c