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

Commit 2f4eb6a8 authored by Jon Mason's avatar Jon Mason
Browse files

ntb: iounmap MW reg and vbase in error path



The MW regbase and vbase(s) were not being freed if an error occurred
in the vbase allocation loop.  This is corrected by updating the error
path for the allocation loop to err4.

Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent d4a4f75c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1778,7 +1778,7 @@ static int ntb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
			dev_warn(&pdev->dev, "Cannot remap BAR %d\n",
			dev_warn(&pdev->dev, "Cannot remap BAR %d\n",
				 MW_TO_BAR(i));
				 MW_TO_BAR(i));
			rc = -EIO;
			rc = -EIO;
			goto err3;
			goto err4;
		}
		}
	}
	}