projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643d126
)
netfilter: nf_tables: Drop pointless memset in nf_tables_dump_obj
author
Phil Sutter
<phil@nwl.cc>
Fri, 20 Oct 2023 17:34:28 +0000
(19:34 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 24 Oct 2023 11:16:30 +0000
(13:16 +0200)
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>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index 03a306d15f43b5fe1ff44541bae98a05f4f65875..fa216d1cfb7416a9369fbf76011f27ae806ee51e 100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-7717,9
+7717,6
@@
static int nf_tables_dump_obj(struct sk_buff *skb, struct netlink_callback *cb)
goto cont;
if (idx < s_idx)
goto cont;
- if (idx > s_idx)
- memset(&cb->args[1], 0,
- sizeof(cb->args) - sizeof(cb->args[0]));
if (filter && filter->table &&
strcmp(filter->table, table->name))
goto cont;