Skip to content

Commit

Permalink
drivers/net/wan/farsync.c: add missing iounmap
Browse files Browse the repository at this point in the history
Free card->mem in the error-handling code since it was successfully
allocated just above.

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JuliaLawall authored and davem330 committed Apr 18, 2012
1 parent 5b76d06 commit 48159f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wan/farsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48159f0

Please sign in to comment.