mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
net: 3c59x: fix leak of iomaps
If vortex_probe1() fails we should unmap ioaddr mapped earlier. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
451e07a264
commit
f89f5d0e94
1 changed files with 1 additions and 0 deletions
|
@ -1029,6 +1029,7 @@ static int __devinit vortex_init_one(struct pci_dev *pdev,
|
|||
rc = vortex_probe1(&pdev->dev, ioaddr, pdev->irq,
|
||||
ent->driver_data, unit);
|
||||
if (rc < 0) {
|
||||
pci_iounmap(pdev, ioaddr);
|
||||
pci_disable_device(pdev);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue