From: Pablo Neira Ayuso Date: Mon, 24 Jan 2011 18:01:07 +0000 (+0100) Subject: netfilter: ctnetlink: fix missing refcount increment during dumps X-Git-Tag: v2.6.37.2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec2e8ab605d6a5d17f9b4c8db86f9594b2453280;p=pandora-kernel.git netfilter: ctnetlink: fix missing refcount increment during dumps commit c71caf4114a0e1da3451cc92fba6a152929cd4c2 upstream. In 13ee6ac netfilter: fix race in conntrack between dump_table and destroy, we recovered spinlocks to protect the dump of the conntrack table according to reports from Stephen and acknowledgments on the issue from Eric. In that patch, the refcount bump that allows to keep a reference to the current ct object was removed. However, we still decrement the refcount for that object in the output path of ctnetlink_dump_table(): if (last) nf_ct_put(last) Cc: Stephen Hemminger Signed-off-by: Pablo Neira Ayuso Acked-by: Eric Dumazet Signed-off-by: Patrick McHardy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed