PM: Fix printing IRQ names for pending wakeup IRQs
[linux-2.6.git] / kernel / irq / pm.c
index 1f455f3..fe4b09c 100644 (file)
@@ -106,7 +106,9 @@ int check_wakeup_irqs(void)
                if (irqd_is_wakeup_set(&desc->irq_data)) {
                        if (desc->istate & IRQS_PENDING) {
                                pr_info("Wakeup IRQ %d %s pending, suspend aborted\n",
-                                       irq, desc->name ? desc->name : "");
+                                       irq,
+                                       desc->action && desc->action->name ?
+                                       desc->action->name : "");
                                return -EBUSY;
                        }
                        continue;