summaryrefslogtreecommitdiff
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-16 05:22:12 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-17 22:31:59 -0400
commit48159f009f5f92ef5962e7c278ac615d74242fa5 (patch)
tree3594ca5b6e7a47e1822ea27ed4b1201aa930fef7 /drivers/net/wan
parent5b76d0600b2b08eef77f8e9226938b7b6bde3099 (diff)
downloadlinux-next-48159f009f5f92ef5962e7c278ac615d74242fa5.tar.gz
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')
-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;
}