summaryrefslogtreecommitdiff
path: root/arch/arc/kernel
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-07-02 08:32:54 (GMT)
committerVineet Gupta <vgupta@synopsys.com>2015-07-06 05:39:06 (GMT)
commit6b12ec177c410ef984d2b97717df77c9269eaeac (patch)
tree2e24b88bc5a8aa7084a028a9651b3fc739ced5e1 /arch/arc/kernel
parent83ce3e6fcc16b4d36d40765618777b5a6a30d75b (diff)
downloadlinux-6b12ec177c410ef984d2b97717df77c9269eaeac.tar.xz
ARCv2: intc: IDU: Fix potential race in installing a chained IRQ handler
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r--arch/arc/kernel/mcip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arc/kernel/mcip.c b/arch/arc/kernel/mcip.c
index dfeea22..6fb0a2f 100644
--- a/arch/arc/kernel/mcip.c
+++ b/arch/arc/kernel/mcip.c
@@ -347,8 +347,7 @@ idu_of_init(struct device_node *intc, struct device_node *parent)
if (!i)
idu_first_irq = irq;
- irq_set_handler_data(irq, domain);
- irq_set_chained_handler(irq, idu_cascade_isr);
+ irq_set_chained_handler_and_data(irq, idu_cascade_isr, domain);
}
__mcip_cmd(CMD_IDU_ENABLE, 0);