OSDN Git Service

powerpc/irq: fix stack overflow verification
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / powerpc / kernel / irq.c
index 290559d..083c31d 100644 (file)
@@ -484,8 +484,6 @@ void __do_irq(struct pt_regs *regs)
 
        trace_irq_entry(regs);
 
-       check_stack_overflow();
-
        /*
         * Query the platform PIC for the interrupt & ack it.
         *
@@ -517,6 +515,8 @@ void do_IRQ(struct pt_regs *regs)
        irqtp = hardirq_ctx[raw_smp_processor_id()];
        sirqtp = softirq_ctx[raw_smp_processor_id()];
 
+       check_stack_overflow();
+
        /* Already there ? */
        if (unlikely(curtp == irqtp || curtp == sirqtp)) {
                __do_irq(regs);