From 93f1d69a779b1999fbe3a8b62caffde3fe3edf3f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 19 Jul 2012 17:10:28 +0100 Subject: [PATCH] [natsemi] Add missing iounmap() Reported-by: Thomas Miletich Signed-off-by: Michael Brown --- src/drivers/net/natsemi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/net/natsemi.c b/src/drivers/net/natsemi.c index fb1eb822..669fb877 100644 --- a/src/drivers/net/natsemi.c +++ b/src/drivers/net/natsemi.c @@ -880,6 +880,7 @@ static int natsemi_probe ( struct pci_device *pci ) { err_hwaddr: natsemi_reset ( natsemi ); err_reset: + iounmap ( natsemi->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); err_alloc: @@ -902,6 +903,7 @@ static void natsemi_remove ( struct pci_device *pci ) { natsemi_reset ( natsemi ); /* Free network device */ + iounmap ( natsemi->regs ); netdev_nullify ( netdev ); netdev_put ( netdev ); }