git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm
[pandora-kernel.git]
/
arch
/
powerpc
/
sysdev
/
ipic.c
diff --git
a/arch/powerpc/sysdev/ipic.c
b/arch/powerpc/sysdev/ipic.c
index
ebb7e58
..
cb7689c
100644
(file)
--- 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)
ipic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR,
NR_IPIC_INTS,
&ipic_host_ops, 0);
- if (ipic->irqhost == NULL)
+ if (ipic->irqhost == NULL) {
+ kfree(ipic);
return NULL;
+ }
ipic->regs = ioremap(res.start, res.end - res.start + 1);