summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-apple-aic.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2022-03-10 09:34:58 +0100
committerMarc Zyngier <maz@kernel.org>2022-03-10 09:58:34 +0100
commitdc29812dbc873ae00bf19a4b8661984d7cce7a2e (patch)
treed0dfdc7527300319c529f83ac68e767c564dc81b /drivers/irqchip/irq-apple-aic.c
parentirqchip/apple-aic: Move PMU-specific registers to their own include file (diff)
downloadlinux-dc29812dbc873ae00bf19a4b8661984d7cce7a2e.tar.xz
linux-dc29812dbc873ae00bf19a4b8661984d7cce7a2e.zip
irqchip/apple-aic: Fix cpumask allocation for FIQs
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
Diffstat (limited to 'drivers/irqchip/irq-apple-aic.c')
-rw-r--r--drivers/irqchip/irq-apple-aic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-apple-aic.c b/drivers/irqchip/irq-apple-aic.c
index b40199c6625e..3f1d2f3ccb7f 100644
--- a/drivers/irqchip/irq-apple-aic.c
+++ b/drivers/irqchip/irq-apple-aic.c
@@ -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;