summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-09-03 01:28:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-09-11 13:04:15 +0200
commitcbdd39ce42530a193c56beb206a3356cb6d01016 (patch)
tree9bef09431167f1830444bb782f3920afe2573e58 /tools/perf/scripts/python
parent444e4c88c9c62a3d823069006563513fe7d5aa66 (diff)
downloadlinux-cbdd39ce42530a193c56beb206a3356cb6d01016.tar.gz
linux-cbdd39ce42530a193c56beb206a3356cb6d01016.zip
netfilter: nf_nat: unregister and release hooks on error
If nf_hook_entries_insert_raw() fails, the NAT hooks get never released, resulting in a memleak. Postpone setting nat_proto_net->nat_hook_ops when the hooks are registered to simplify the error path to decide whether the nat hooks need unwinding. Fixes: 1cd472bf036c ("netfilter: nf_nat: add nat hook register functions to nf_nat") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions