Message ID | 20211012024229.180058-1-davidcomponentone@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [psci_checker] Fix application of sizeof to pointer | expand |
diff --git a/drivers/firmware/psci/psci_checker.c b/drivers/firmware/psci/psci_checker.c index 9a369a2eda71..13161c93283f 100644 --- a/drivers/firmware/psci/psci_checker.c +++ b/drivers/firmware/psci/psci_checker.c @@ -155,7 +155,7 @@ static int alloc_init_cpu_groups(cpumask_var_t **pcpu_groups) if (!alloc_cpumask_var(&tmp, GFP_KERNEL)) return -ENOMEM; - cpu_groups = kcalloc(nb_available_cpus, sizeof(cpu_groups), + cpu_groups = kcalloc(nb_available_cpus, sizeof(cpumask_var_t), GFP_KERNEL); if (!cpu_groups) { free_cpumask_var(tmp);