提交 6d64d425 编写于 作者: P Paul Mundt

sh: intc: Fix sense regs oops for IRL IRQs.

IRL doesn't always define sense registers, so don't bother trying to
iterate through the table. This ended up causing an oops on SH-X3
when using IRL mode.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 96290d80
......@@ -218,7 +218,7 @@ static int intc_set_sense(unsigned int irq, unsigned int type)
break;
}
if (!enum_id || !value)
if (!enum_id || !value || !desc->sense_regs)
return -EINVAL;
value ^= VALID(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册