irqchip/apple-aic: Fix cpumask allocation for FIQs
authorMarc Zyngier <maz@kernel.org>
Thu, 10 Mar 2022 08:34:58 +0000 (08:34 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Mar 2022 08:58:34 +0000 (08:58 +0000)
An emparassing typo: allocating a pointer instead of the object
pointed to. No harm done, as the pointer is large enough for
what we are using the object for, but still...

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220310050238.4478-1-guozhengkui@vivo.com
drivers/irqchip/irq-apple-aic.c

index b40199c6625e3f14a8c61717f4da9676557b6c5a..3f1d2f3ccb7fa6fd69a4f4945c2f80f638e3f416 100644 (file)
@@ -810,7 +810,7 @@ static void build_fiq_affinity(struct aic_irq_chip *ic, struct device_node *aff)
        if (WARN_ON(n < 0))
                return;
 
-       ic->fiq_aff[fiq] = kzalloc(sizeof(ic->fiq_aff[fiq]), GFP_KERNEL);
+       ic->fiq_aff[fiq] = kzalloc(sizeof(*ic->fiq_aff[fiq]), GFP_KERNEL);
        if (!ic->fiq_aff[fiq])
                return;