diff options
author | Jayachandran C <jchandra@broadcom.com> | 2014-04-29 20:07:43 +0530 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-30 16:46:07 +0200 |
commit | 9de10ffb54565b4d427adf1037579617e73cb8bf (patch) | |
tree | 8eea9a9dc4d7d6306f9edc6e4287b0a71c7dd316 /arch/mips | |
parent | 3e468567c2d56441079db090b3771bfc9d91cba5 (diff) | |
download | blackbird-obmc-linux-9de10ffb54565b4d427adf1037579617e73cb8bf.tar.gz blackbird-obmc-linux-9de10ffb54565b4d427adf1037579617e73cb8bf.zip |
MIPS: Netlogic: Warn on invalid irq
Warn and return if invalid IRQ is passed to nlm_set_pic_extra_ack.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6862/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/netlogic/common/irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/netlogic/common/irq.c b/arch/mips/netlogic/common/irq.c index 5afc4b7fce0f..c100b9afa0ab 100644 --- a/arch/mips/netlogic/common/irq.c +++ b/arch/mips/netlogic/common/irq.c @@ -203,6 +203,8 @@ void nlm_set_pic_extra_ack(int node, int irq, void (*xack)(struct irq_data *)) xirq = nlm_irq_to_xirq(node, irq); pic_data = irq_get_handler_data(xirq); + if (WARN_ON(!pic_data)) + return; pic_data->extra_ack = xack; } |