Re: [PATCH v4 05/11] perf/x86/rapl: Move cpumask variable to rapl_pmus struct

From: Zhang, Rui
Date: Thu Jul 11 2024 - 23:07:30 EST


> @@ -710,6 +710,9 @@ static int __init init_rapl_pmus(void)
>         rapl_pmus = kzalloc(struct_size(rapl_pmus, rapl_pmu,
> nr_rapl_pmu), GFP_KERNEL);
>         if (!rapl_pmus)
>                 return -ENOMEM;
> +
> +       if (!alloc_cpumask_var(&rapl_pmus->cpumask, GFP_KERNEL))
> +               return -ENOMEM;

missing free_cpumask_var() in cleanup_rapl_pmus()?

thanks,
rui