> +static void nest_change_cpu_context(int old_cpu, int new_cpu)
> +{
> +     int i;
> +
> +     for (i = 0; per_nest_pmu_arr[i] != NULL; i++)
> +             perf_pmu_migrate_context(&per_nest_pmu_arr[i]->pmu,
> +                                             old_cpu, new_cpu);
From patch 4, I see per_nest_pmu_arr is defined as:
 +static struct nest_pmu *per_nest_pmu_arr[P8_NEST_MAX_PMUS];

Therefore, does this loop need to have a check that 
i < P8_NEST_MAX_PMUS?


-- 
Regards,
Daniel

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to