mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
netfilter: nf_tables: Drop pointless memset in nf_tables_dump_obj
[ Upstream commitff16111cc1
] The code does not make use of cb->args fields past the first one, no need to zero them. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Stable-dep-of:bd662c4218
("netfilter: nf_tables: Add locking for NFT_MSG_GETOBJ_RESET requests") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bb6231e533
commit
83d37714c1
|
@ -7753,9 +7753,6 @@ static int nf_tables_dump_obj(struct sk_buff *skb, struct netlink_callback *cb)
|
||||||
goto cont;
|
goto cont;
|
||||||
if (idx < s_idx)
|
if (idx < s_idx)
|
||||||
goto cont;
|
goto cont;
|
||||||
if (idx > s_idx)
|
|
||||||
memset(&cb->args[1], 0,
|
|
||||||
sizeof(cb->args) - sizeof(cb->args[0]));
|
|
||||||
if (filter && filter->table &&
|
if (filter && filter->table &&
|
||||||
strcmp(filter->table, table->name))
|
strcmp(filter->table, table->name))
|
||||||
goto cont;
|
goto cont;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user