arm/ipipe: irq-crossbar: Fix NULL pointer dereference
PATCH 1/1 arm/ipipe: irq-crossbar: Fix NULL pointer dereference
arm/ipipe: irq-crossbar: Fix NULL pointer dereference
The TI irq-crossbar driver needs to declare the irq_hold and irq_release functions, otherwise IPIPE will dereference a NULL pointer.
Tested on AM5728.
Signed-off-by Len Sorensen <[email protected]>
drivers/irqchip/irq-crossbar.c +5 -0
@@ -15,6 +15,7 @@#include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/slab.h> +#include <linux/ipipe.h> #include "irqchip.h"
@@ -74,6 +75,10 @@ static struct irq_chip crossbar_chip = {#ifdef CONFIG_SMP .irq_set_affinity = irq_chip_set_affinity_parent,#endif +#ifdef CONFIG_IPIPE + .irq_hold = irq_chip_hold_parent, + .irq_release = irq_chip_release_parent, +#endif }; static int allocate_gic_irq(struct irq_domain *domain, unsigned virq,
Signature · 1 line
Len Sorensen
Philippe Gerum
AppliedQuoted 7 lines · Lennart Sorensen
arm/ipipe: irq-crossbar: Fix NULL pointer dereference
The TI irq-crossbar driver needs to declare the
irq_holdandirq_releasefunctions, otherwise IPIPE will dereference a NULL pointer.Tested on AM5728.
Merged, thanks.
Signature · 1 line
Philippe.