]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/selinux/selinuxfs.c
cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: core
[net-next-2.6.git] / security / selinux / selinuxfs.c
index c86303638235f2633eaff9c5426eed950517f785..e5520996a75be16960c09324ac572e36de06eac2 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;