diff options
-rw-r--r-- | arch/powerpc/kernel/irq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 47fbc56e9e1c..4002b48fd607 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -587,8 +587,10 @@ struct irq_host *irq_alloc_host(struct device_node *of_node, | |||
587 | * this will be fixed once slab is made available early | 587 | * this will be fixed once slab is made available early |
588 | * instead of the current cruft | 588 | * instead of the current cruft |
589 | */ | 589 | */ |
590 | if (mem_init_done) | 590 | if (mem_init_done) { |
591 | of_node_put(host->of_node); | ||
591 | kfree(host); | 592 | kfree(host); |
593 | } | ||
592 | return NULL; | 594 | return NULL; |
593 | } | 595 | } |
594 | irq_map[0].host = host; | 596 | irq_map[0].host = host; |