projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b76d06
)
drivers/net/wan/farsync.c: add missing iounmap
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Mon, 16 Apr 2012 05:22:12 +0000
(
05:22
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 18 Apr 2012 02:31:59 +0000
(22:31 -0400)
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>
drivers/net/wan/farsync.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/farsync.c
b/drivers/net/wan/farsync.c
index ebb9f24eefb5e568f90b859e2b3e47028a868a70..1a623183cbe54d63f8392f924953b127ded83c1f 100644
(file)
--- 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;
}