DORMANTno replies

[PATCH] janitor: insert a missing iounmap()

From: Randy.Dunlap <hidden>
Date: 2003-09-17 22:01:05

Hi,
Please apply to 2.6.0-test5-current.

Thanks.
--
~Randy


From: Leann Ogasawara <redacted>
Subject: [Kernel-janitors] [PATCH] insert missing iounmap()

Patch inserts a missing iounmap().


 linux-260-test5-kj-rddunlap/drivers/net/rcpci45.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN drivers/net/rcpci45.c~net_rcpci_iounmap drivers/net/rcpci45.c
--- linux-260-test5-kj/drivers/net/rcpci45.c~net_rcpci_iounmap	2003-09-10 16:47:04.000000000 -0700
+++ linux-260-test5-kj-rddunlap/drivers/net/rcpci45.c	2003-09-10 16:47:04.000000000 -0700
@@ -259,10 +259,12 @@ rcpci45_init_one (struct pci_dev *pdev, 
 	dev->set_config = &RCconfig;
 
 	if ((error = register_netdev(dev)))
-		goto err_out_free_region;
+		goto err_out_iounmap;
 
 	return 0;		/* success */
 
+err_out_iounmap:
+	iounmap((void *) dev->base_addr);
 err_out_free_region:
 	pci_release_regions (pdev);
 err_out_free_msgbuf:
_
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help