提交 9de10ffb 编写于 作者: J Jayachandran C 提交者: Ralf Baechle

MIPS: Netlogic: Warn on invalid irq

Warn and return if invalid IRQ is passed to nlm_set_pic_extra_ack.
Signed-off-by: NJayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6862/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 3e468567
...@@ -203,6 +203,8 @@ void nlm_set_pic_extra_ack(int node, int irq, void (*xack)(struct irq_data *)) ...@@ -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); xirq = nlm_irq_to_xirq(node, irq);
pic_data = irq_get_handler_data(xirq); pic_data = irq_get_handler_data(xirq);
if (WARN_ON(!pic_data))
return;
pic_data->extra_ack = xack; pic_data->extra_ack = xack;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册