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 dfeea22048afa46f1ebc672352e0d462b3346913..6fb0a2fd1d288138d25254d85c487be455c7d74b 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);