ARCv2: intc: IDU: Fix potential race in installing a chained IRQ handler
authorVineet Gupta <vgupta@synopsys.com>
Thu, 2 Jul 2015 08:32:54 +0000 (14:02 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Jul 2015 05:39:06 +0000 (11:09 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/mcip.c

index dfeea22..6fb0a2f 100644 (file)
@@ -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);