Commit 6d64d425 authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 96290d80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);