cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: core
[safe/jmp/linux-2.6] / security / selinux / selinuxfs.c
index c863036..e552099 100644 (file)
@@ -1211,7 +1211,7 @@ static struct avc_cache_stats *sel_avc_get_stat_idx(loff_t *idx)
 {
        int cpu;
 
-       for (cpu = *idx; cpu < NR_CPUS; ++cpu) {
+       for (cpu = *idx; cpu < nr_cpu_ids; ++cpu) {
                if (!cpu_possible(cpu))
                        continue;
                *idx = cpu + 1;