diff options
author | Florian Westphal <fw@strlen.de> | 2018-07-23 13:47:14 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-24 01:36:33 +0300 |
commit | 90fd131afc565159c9e0ea742f082b337e10f8c6 (patch) | |
tree | 6245dc04a7b2cda296665138ccd0f5f0852fe7b8 /samples/timers | |
parent | 6613b6173dee098997229caf1f3b961c49da75e6 (diff) | |
download | linux-90fd131afc565159c9e0ea742f082b337e10f8c6.tar.xz |
netfilter: nf_tables: move dumper state allocation into ->start
Shaochun Chen points out we leak dumper filter state allocations
stored in dump_control->data in case there is an error before netlink sets
cb_running (after which ->done will be called at some point).
In order to fix this, add .start functions and do the allocations
there.
->done is going to clean up, and in case error occurs before
->start invocation no cleanups need to be done anymore.
Reported-by: shaochun chen <cscnull@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'samples/timers')
0 files changed, 0 insertions, 0 deletions