summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/farsync.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-16 07:22:12 +0200
committerDavid S. Miller <davem@davemloft.net>2012-04-18 04:31:59 +0200
commit48159f009f5f92ef5962e7c278ac615d74242fa5 (patch)
tree3594ca5b6e7a47e1822ea27ed4b1201aa930fef7 /drivers/net/wan/farsync.c
parentdavinci_mdio: Fix MDIO timeout check (diff)
downloadlinux-48159f009f5f92ef5962e7c278ac615d74242fa5.tar.xz
linux-48159f009f5f92ef5962e7c278ac615d74242fa5.zip
drivers/net/wan/farsync.c: add missing iounmap
Free card->mem in the error-handling code since it was successfully allocated just above. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/farsync.c')
-rw-r--r--drivers/net/wan/farsync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c
index ebb9f24eefb5..1a623183cbe5 100644
--- a/drivers/net/wan/farsync.c
+++ b/drivers/net/wan/farsync.c
@@ -2483,6 +2483,7 @@ fst_add_one(struct pci_dev *pdev, const struct pci_device_id *ent)
pr_err("Control memory remap failed\n");
pci_release_regions(pdev);
pci_disable_device(pdev);
+ iounmap(card->mem);
kfree(card);
return -ENODEV;
}