Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6d64d4256cccd3a452ebd8c37a1d41e2d5dab8c6 Commit: 6d64d4256cccd3a452ebd8c37a1d41e2d5dab8c6 Parent: 96290d808fa4c9b8e744dc1cd032b005179f4710 Author: Paul Mundt <[EMAIL PROTECTED]> AuthorDate: Tue Aug 7 18:51:19 2007 +0900 Committer: Paul Mundt <[EMAIL PROTECTED]> CommitDate: Fri Sep 21 11:57:48 2007 +0900
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: Paul Mundt <[EMAIL PROTECTED]> --- arch/sh/kernel/cpu/irq/intc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/sh/kernel/cpu/irq/intc.c b/arch/sh/kernel/cpu/irq/intc.c index a25f70d..5681940 100644 --- a/arch/sh/kernel/cpu/irq/intc.c +++ b/arch/sh/kernel/cpu/irq/intc.c @@ -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); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html