aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_cthelper.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-03-02 21:58:50 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-03-04 02:27:18 +0100
commit2d285f26ecd072800a29c5b71e63437f21ef830a (patch)
tree3977efbf75e00c7c57bb970e89dd59cf07713926 /net/netfilter/nfnetlink_cthelper.c
parentnetfilter: x_tables: xt_mttg_seq_next should increase position index (diff)
downloadlinux-dev-2d285f26ecd072800a29c5b71e63437f21ef830a.tar.xz
linux-dev-2d285f26ecd072800a29c5b71e63437f21ef830a.zip
netfilter: nf_tables: free flowtable hooks on hook register error
If hook registration fails, the hooks allocated via nft_netdev_hook_alloc need to be freed. We can't change the goto label to 'goto 5' -- while it does fix the memleak it does cause a warning splat from the netfilter core (the hooks were not registered). Fixes: 3f0465a9ef02 ("netfilter: nf_tables: dynamically allocate hooks per net_device in flowtables") Reported-by: syzbot+a2ff6fa45162a5ed4dd3@syzkaller.appspotmail.com Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions