From ac8107854fb4ad2c90ab9c04e562d2a65b5e8f72 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 19 Jul 2012 17:10:28 +0100 Subject: [PATCH] [intel] Add missing iounmap() Reported-by: Thomas Miletich Signed-off-by: Michael Brown --- src/drivers/net/intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/net/intel.c b/src/drivers/net/intel.c index 1fdce1cb..353fc971 100644 --- a/src/drivers/net/intel.c +++ b/src/drivers/net/intel.c @@ -799,6 +799,7 @@ static int intel_probe ( struct pci_device *pci ) { err_fetch_mac: intel_reset ( intel ); err_reset: + iounmap ( intel->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); err_alloc: @@ -821,6 +822,7 @@ static void intel_remove ( struct pci_device *pci ) { intel_reset ( intel ); /* Free network device */ + iounmap ( intel->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); }