diff options
Diffstat (limited to 'net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c')
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index 313ebf00ee3..6ba5c557690 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -291,7 +291,7 @@ static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) | |||
291 | if (*pos == 0) | 291 | if (*pos == 0) |
292 | return SEQ_START_TOKEN; | 292 | return SEQ_START_TOKEN; |
293 | 293 | ||
294 | for (cpu = *pos-1; cpu < NR_CPUS; ++cpu) { | 294 | for (cpu = *pos-1; cpu < nr_cpu_ids; ++cpu) { |
295 | if (!cpu_possible(cpu)) | 295 | if (!cpu_possible(cpu)) |
296 | continue; | 296 | continue; |
297 | *pos = cpu+1; | 297 | *pos = cpu+1; |
@@ -306,7 +306,7 @@ static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
306 | struct net *net = seq_file_net(seq); | 306 | struct net *net = seq_file_net(seq); |
307 | int cpu; | 307 | int cpu; |
308 | 308 | ||
309 | for (cpu = *pos; cpu < NR_CPUS; ++cpu) { | 309 | for (cpu = *pos; cpu < nr_cpu_ids; ++cpu) { |
310 | if (!cpu_possible(cpu)) | 310 | if (!cpu_possible(cpu)) |
311 | continue; | 311 | continue; |
312 | *pos = cpu+1; | 312 | *pos = cpu+1; |