projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e46856
)
MIPS: Netlogic: Warn on invalid irq
author
Jayachandran C
<jchandra@broadcom.com>
Tue, 29 Apr 2014 14:37:43 +0000
(20:07 +0530)
committer
Ralf Baechle
<ralf@linux-mips.org>
Fri, 30 May 2014 14:46:07 +0000
(16:46 +0200)
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>
arch/mips/netlogic/common/irq.c
patch
|
blob
|
history
diff --git
a/arch/mips/netlogic/common/irq.c
b/arch/mips/netlogic/common/irq.c
index 5afc4b7fce0f12ddb96fd00f54b7a6577b887eb0..c100b9afa0abe85fe31555a06bcc25186345eacd 100644
(file)
--- 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;
}