Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48159f00 authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b76d060
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2483,6 +2483,7 @@ fst_add_one(struct pci_dev *pdev, const struct pci_device_id *ent)
		pr_err("Control memory remap failed\n");
		pr_err("Control memory remap failed\n");
		pci_release_regions(pdev);
		pci_release_regions(pdev);
		pci_disable_device(pdev);
		pci_disable_device(pdev);
		iounmap(card->mem);
		kfree(card);
		kfree(card);
		return -ENODEV;
		return -ENODEV;
	}
	}