From patchwork Mon Dec 3 16:37:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PCI AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put() Date: Mon, 03 Dec 2012 06:37:02 -0000 From: Betty Dall X-Patchwork-Id: 203398 Message-Id: <1354552622-687-1-git-send-email-betty.dall@hp.com> To: bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: wangyijing@huawei.com, jiang.liu@huawei.com, Betty Dall The function aer_recover_queue() makes a call to pci_get_domain_bus_and_slot(). That function is documented to require that the caller decrement the reference count by calling pci_dev_put(). This patch adds the missing call to pci_dev_put(). Signed-off-by: Betty Dall Reviewed-by: Shuah Khan --- drivers/pci/pcie/aer/aerdrv_core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index af4e31c..43caf53 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -616,6 +616,7 @@ static void aer_recover_work_func(struct work_struct *work) continue; } do_recovery(pdev, entry.severity); + pci_dev_put(pdev); } } #endif