From d32aac88efa05df8f70848befe64da827f94276b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 19 Jul 2012 17:10:28 +0100 Subject: [PATCH] [skel] Add missing iounmap() Reported-by: Thomas Miletich Signed-off-by: Michael Brown --- src/drivers/net/skeleton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/net/skeleton.c b/src/drivers/net/skeleton.c index 3e1e2d54..e50b778a 100644 --- a/src/drivers/net/skeleton.c +++ b/src/drivers/net/skeleton.c @@ -268,6 +268,7 @@ static int skeleton_probe ( struct pci_device *pci ) { err_mii_reset: skeleton_reset ( skel ); err_reset: + iounmap ( skel->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); err_alloc: @@ -290,6 +291,7 @@ static void skeleton_remove ( struct pci_device *pci ) { skeleton_reset ( skel ); /* Free network device */ + iounmap ( skel->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); }