]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: Drop pointless memset when dumping rules
authorPhil Sutter <phil@nwl.cc>
Fri, 29 Sep 2023 19:19:19 +0000 (21:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:15 +0000 (11:08 +0100)
commitbfd4ed4988aaa74a726a42b38a56ec5bdb63f7d9
treed8036727d4b6bee56d516120305ff67e4cf5be62
parent80986257d2cd135bee629152c3bfa3a7a23ac898
netfilter: nf_tables: Drop pointless memset when dumping rules

[ Upstream commit 30fa41a0f6df4c85790cc6499ddc4a926a113bfa ]

None of the dump callbacks uses netlink_callback::args beyond the first
element, no need to zero the data.

Fixes: 96518518cc41 ("netfilter: add nftables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c