From: Lior Dotan Date: Wed, 8 Oct 2008 09:37:37 +0000 (+0200) Subject: Staging: SLICOSS: Call pci_release_regions at driver exit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f25fda728dfb5c23d1147279fc6a537451603369;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: SLICOSS: Call pci_release_regions at driver exit slic_entry_probe() calls pci_request_regions() but there's no matching pci_release_regions() at driver's exit or if slic_entry_probe() fails. Signed-off-by: Lior Dotan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index c129e83e2f4e..b61ac4b2db9e 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -520,6 +520,7 @@ err_out_free_mmio_region: release_mem_region(mmio_start, mmio_len); err_out_exit_slic_probe: + pci_release_regions(pcidev); DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies, smp_processor_id()); @@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev) } DBG_MSG("slicoss: %s deallocate device\n", __func__); kfree(dev); + pci_release_regions(pcidev); DBG_MSG("slicoss: %s EXIT\n", __func__); }