diff options
Diffstat (limited to 'arch/powerpc/sysdev')
| -rw-r--r-- | arch/powerpc/sysdev/ipic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index ebb7e5844012..cb7689c4bfbd 100644 --- a/arch/powerpc/sysdev/ipic.c +++ b/arch/powerpc/sysdev/ipic.c | |||
| @@ -735,8 +735,10 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags) | |||
| 735 | ipic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR, | 735 | ipic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR, |
| 736 | NR_IPIC_INTS, | 736 | NR_IPIC_INTS, |
| 737 | &ipic_host_ops, 0); | 737 | &ipic_host_ops, 0); |
| 738 | if (ipic->irqhost == NULL) | 738 | if (ipic->irqhost == NULL) { |
| 739 | kfree(ipic); | ||
| 739 | return NULL; | 740 | return NULL; |
| 741 | } | ||
| 740 | 742 | ||
| 741 | ipic->regs = ioremap(res.start, res.end - res.start + 1); | 743 | ipic->regs = ioremap(res.start, res.end - res.start + 1); |
| 742 | 744 | ||
