* [PATCH] Free when ioremap fails in powerpc/platforms/52xx/mpc52xx_pci.c
@ 2007-10-27 14:11 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2007-10-27 14:11 UTC (permalink / raw)
To: linuxppc-dev
Free hose when ioremap fails
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pci.c b/arch/powerpc/platforms/52xx/mpc52xx_pci.c
index 4c6c82a..50f9655 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_pci.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_pci.c
@@ -395,8 +395,10 @@ mpc52xx_add_bridge(struct device_node *node)
hose->ops = &mpc52xx_pci_ops;
pci_regs = ioremap(rsrc.start, rsrc.end - rsrc.start + 1);
- if (!pci_regs)
+ if (!pci_regs) {
+ pcibios_free_controller(hose);
return -ENOMEM;
+ }
pci_process_bridge_OF_ranges(hose, node, 1);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-27 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 14:11 [PATCH] Free when ioremap fails in powerpc/platforms/52xx/mpc52xx_pci.c Roel Kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.