]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From f25fda728dfb5c23d1147279fc6a537451603369 Mon Sep 17 00:00:00 2001 |
2 | From: Lior Dotan <liodot@gmail.com> | |
3 | Date: Wed, 8 Oct 2008 11:37:37 +0200 | |
4 | Subject: [PATCH 22/23] Staging: SLICOSS: Call pci_release_regions at driver exit | |
5 | Patch-mainline: 2.6.28 | |
6 | ||
7 | slic_entry_probe() calls pci_request_regions() but there's no matching | |
8 | pci_release_regions() at driver's exit or if slic_entry_probe() fails. | |
9 | ||
10 | Signed-off-by: Lior Dotan <liodot@gmail.com> | |
11 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
12 | --- | |
13 | drivers/staging/slicoss/slicoss.c | 2 ++ | |
14 | 1 files changed, 2 insertions(+), 0 deletions(-) | |
15 | ||
16 | diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c | |
17 | index c129e83..b61ac4b 100644 | |
18 | --- a/drivers/staging/slicoss/slicoss.c | |
19 | +++ b/drivers/staging/slicoss/slicoss.c | |
20 | @@ -520,6 +520,7 @@ err_out_free_mmio_region: | |
21 | release_mem_region(mmio_start, mmio_len); | |
22 | ||
23 | err_out_exit_slic_probe: | |
24 | + pci_release_regions(pcidev); | |
25 | DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies, | |
26 | smp_processor_id()); | |
27 | ||
28 | @@ -649,6 +650,7 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev) | |
29 | } | |
30 | DBG_MSG("slicoss: %s deallocate device\n", __func__); | |
31 | kfree(dev); | |
32 | + pci_release_regions(pcidev); | |
33 | DBG_MSG("slicoss: %s EXIT\n", __func__); | |
34 | } | |
35 | ||
36 | -- | |
37 | 1.6.0.2 | |
38 |