summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/sh/kernel/cpu/irq/intc.c2
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 a25f70dd6ad7..56819409a36a 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);