Commit 6e558db0 authored by Lennart Sorensen's avatar Lennart Sorensen Committed by Philippe Gerum
Browse files

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: default avatarLen Sorensen <lsorense@csclub.uwaterloo.ca>
parent b328a930
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment