summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-07-23 12:47:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-07-24 00:36:33 +0200
commit90fd131afc565159c9e0ea742f082b337e10f8c6 (patch)
tree6245dc04a7b2cda296665138ccd0f5f0852fe7b8 /drivers
parent6613b6173dee098997229caf1f3b961c49da75e6 (diff)
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 'drivers')
0 files changed, 0 insertions, 0 deletions