summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2017-04-14 10:00:08 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-24 10:58:43 +0100
commite05ba6ea5b74b75840d77ef89017b5d7da6f4366 (patch)
tree14e3c8e1d158b50ee45eeb22960ea9f24b8f9fef /tools/perf/scripts/python/export-to-postgresql.py
parent8f26b63a875d71b5d9f397f743faea749ba6c761 (diff)
netfilter: xt_CT: fix refcnt leak on error path
[ Upstream commit 470acf55a021713869b9bcc967268ac90c8a0fac ] There are two cases which causes refcnt leak. 1. When nf_ct_timeout_ext_add failed in xt_ct_set_timeout, it should free the timeout refcnt. Now goto the err_put_timeout error handler instead of going ahead. 2. When the time policy is not found, we should call module_put. Otherwise, the related cthelper module cannot be removed anymore. It is easy to reproduce by typing the following command: # iptables -t raw -A OUTPUT -p tcp -j CT --helper ftp --timeout xxx Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions