diff options
author | Pablo Neira Ayuso <[email protected]> | 2011-01-24 19:01:07 +0100 |
---|---|---|
committer | Patrick McHardy <[email protected]> | 2011-01-24 19:01:07 +0100 |
commit | c71caf4114a0e1da3451cc92fba6a152929cd4c2 (patch) | |
tree | a80b6b3cfe4d3a9ea74316ec5a2d68a66ca67ddc /tools/perf/util/trace-event-scripting.c | |
parent | b30532515f0a62bfe17207ab00883dd262497006 (diff) |
netfilter: ctnetlink: fix missing refcount increment during dumps
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 <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions