1
0
Fork 0

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>
wifi-calibration
Jayachandran C 2014-04-29 20:07:43 +05:30 committed by Ralf Baechle
parent 3e468567c2
commit 9de10ffb54
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}