Patchwork [3.5.y.z,extended,stable] Patch "PCI/AER: pci_get_domain_bus_and_slot() call missing required" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Jan. 30, 2013, 9:56 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/217017/
State New
Headers show


Herton Ronaldo Krzesinski - Jan. 30, 2013, 9:56 p.m.
This is a note to let you know that I have just added a patch titled

    PCI/AER: pci_get_domain_bus_and_slot() call missing required

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 1de965ab478a0dfda8baca57a37b8dd0394b2187 Mon Sep 17 00:00:00 2001
From: Betty Dall <>
Date: Sun, 13 Jan 2013 15:46:18 -0700
Subject: [PATCH] PCI/AER: pci_get_domain_bus_and_slot() call missing required

commit a82b6af37d20bfe6e99a4d890f1cf1d89059929f upstream.

The function aer_recover_queue() calls pci_get_domain_bus_and_slot(), which
requires that the caller decrement the reference count with pci_dev_put().
This patch adds the missing call to pci_dev_put().

Signed-off-by: Betty Dall <>
Signed-off-by: Bjorn Helgaas <>
Reviewed-by: Shuah Khan <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 drivers/pci/pcie/aer/aerdrv_core.c |    1 +
 1 file changed, 1 insertion(+)



diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c
index 0ca0535..a56105b 100644
--- a/drivers/pci/pcie/aer/aerdrv_core.c
+++ b/drivers/pci/pcie/aer/aerdrv_core.c
@@ -637,6 +637,7 @@  static void aer_recover_work_func(struct work_struct *work)
 		do_recovery(pdev, entry.severity);
+		pci_dev_put(pdev);