提交 f25fda72 编写于 作者: L Lior Dotan 提交者: Greg Kroah-Hartman

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: NLior Dotan <liodot@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 68cf95f3
...@@ -520,6 +520,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev, ...@@ -520,6 +520,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
release_mem_region(mmio_start, mmio_len); release_mem_region(mmio_start, mmio_len);
err_out_exit_slic_probe: err_out_exit_slic_probe:
pci_release_regions(pcidev);
DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies, DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies,
smp_processor_id()); smp_processor_id());
...@@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev) ...@@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev)
} }
DBG_MSG("slicoss: %s deallocate device\n", __func__); DBG_MSG("slicoss: %s deallocate device\n", __func__);
kfree(dev); kfree(dev);
pci_release_regions(pcidev);
DBG_MSG("slicoss: %s EXIT\n", __func__); DBG_MSG("slicoss: %s EXIT\n", __func__);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册