public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iounmap if tioce_kern_init fails in ia64/sn/pci/tioce_provider.c
@ 2007-11-04 11:12 Roel Kluin
  2007-11-05  2:17 ` Simon Horman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roel Kluin @ 2007-11-04 11:12 UTC (permalink / raw)
  To: linux-ia64

Do iounmap if tioce_kern_init fails

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c
index cee9379..128ed07 100644
--- a/arch/ia64/sn/pci/tioce_provider.c
+++ b/arch/ia64/sn/pci/tioce_provider.c
@@ -1008,6 +1008,7 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
 
 	tioce_kern = tioce_kern_init(tioce_common);
 	if (tioce_kern = NULL) {
+		iounmap(tioce_common->ce_pcibus.bs_base);
 		kfree(tioce_common);
 		return NULL;
 	}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-05  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 11:12 [PATCH] iounmap if tioce_kern_init fails in ia64/sn/pci/tioce_provider.c Roel Kluin
2007-11-05  2:17 ` Simon Horman
2007-11-05  9:10 ` Roel Kluin
2007-11-05  9:34 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox