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

Commit b442bf73 authored by Samuel Iglesias Gonsálvez's avatar Samuel Iglesias Gonsálvez Committed by Greg Kroah-Hartman
Browse files

Staging: ipack/bridges/tpci200: increment the reference counter of the pci_dev



As indicated in the documentation of pci_dev_get.

Signed-off-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 79878122
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -670,6 +670,8 @@ static int tpci200_pci_probe(struct pci_dev *pdev,
		goto out_err_info;
	}

	pci_dev_get(pdev);

	/* Obtain a mapping of the carrier's PCI configuration registers */
	ret = pci_request_region(pdev, TPCI200_CFG_MEM_BAR,
				 KBUILD_MODNAME " Configuration Memory");
@@ -741,6 +743,7 @@ static int tpci200_pci_probe(struct pci_dev *pdev,
out_err_ioremap:
	pci_release_region(pdev, TPCI200_CFG_MEM_BAR);
out_err_pci_request:
	pci_dev_put(pdev);
	kfree(tpci200->info);
out_err_info:
	kfree(tpci200);