projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a0fea
)
netfilter: nf_conntrack: ct_cpu_seq_next should increase position index
author
Vasily Averin
<vvs@virtuozzo.com>
Tue, 25 Feb 2020 07:05:47 +0000
(10:05 +0300)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 4 Mar 2020 01:27:18 +0000
(
02:27
+0100)
If .next function does not change position index,
following .show function will repeat output related
to current position index.
Cc: stable@vger.kernel.org
Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code ...")
Link:
https://bugzilla.kernel.org/show_bug.cgi?id=206283
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_standalone.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_standalone.c
b/net/netfilter/nf_conntrack_standalone.c
index 410809c669e119d9f8e84c54e9a3cc782e7b7196..4912069627b651fcad837f40eb208553bf55cdc5 100644
(file)
--- a/
net/netfilter/nf_conntrack_standalone.c
+++ b/
net/netfilter/nf_conntrack_standalone.c
@@
-411,7
+411,7
@@
static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos)
*pos = cpu + 1;
return per_cpu_ptr(net->ct.stat, cpu);
}
-
+ (*pos)++;
return NULL;
}