diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-04-16 09:22:12 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-18 06:31:59 +0400 |
commit | 48159f009f5f92ef5962e7c278ac615d74242fa5 (patch) | |
tree | 3594ca5b6e7a47e1822ea27ed4b1201aa930fef7 /drivers/net/wan/farsync.c | |
parent | 5b76d0600b2b08eef77f8e9226938b7b6bde3099 (diff) | |
download | linux-48159f009f5f92ef5962e7c278ac615d74242fa5.tar.xz |
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.c | 1 |
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; } |