aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLior Dotan <liodot@gmail.com>2008-10-08 05:37:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-10 18:31:14 -0400
commitf25fda728dfb5c23d1147279fc6a537451603369 (patch)
tree07493aec3c7fbcb543bf402fbc30f4e2b26ca1f9
parent68cf95f3183c7bd60feab3bb774e1e4c7f36fe71 (diff)
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 <liodot@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/slicoss/slicoss.c2
1 files changed, 2 insertions, 0 deletions
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:
520 release_mem_region(mmio_start, mmio_len); 520 release_mem_region(mmio_start, mmio_len);
521 521
522err_out_exit_slic_probe: 522err_out_exit_slic_probe:
523 pci_release_regions(pcidev);
523 DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies, 524 DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies,
524 smp_processor_id()); 525 smp_processor_id());
525 526
@@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev)
649 } 650 }
650 DBG_MSG("slicoss: %s deallocate device\n", __func__); 651 DBG_MSG("slicoss: %s deallocate device\n", __func__);
651 kfree(dev); 652 kfree(dev);
653 pci_release_regions(pcidev);
652 DBG_MSG("slicoss: %s EXIT\n", __func__); 654 DBG_MSG("slicoss: %s EXIT\n", __func__);
653} 655}
654 656