Skip to content

Commit f25fda7

Browse files
liordotgregkh
authored andcommitted
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>
1 parent 68cf95f commit f25fda7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/staging/slicoss/slicoss.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
520520
release_mem_region(mmio_start, mmio_len);
521521

522522
err_out_exit_slic_probe:
523+
pci_release_regions(pcidev);
523524
DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies,
524525
smp_processor_id());
525526

@@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev)
649650
}
650651
DBG_MSG("slicoss: %s deallocate device\n", __func__);
651652
kfree(dev);
653+
pci_release_regions(pcidev);
652654
DBG_MSG("slicoss: %s EXIT\n", __func__);
653655
}
654656

0 commit comments

Comments
 (0)