[ 3.5.y.z extended stable ] Patch "PCI/AER: pci_get_domain_bus_and_slot() call missing required" has been added to staging queue
Herton Ronaldo Krzesinski
herton.krzesinski at canonical.com
Wed Jan 30 21:56:48 UTC 2013
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:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;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
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Herton
------
>From 1de965ab478a0dfda8baca57a37b8dd0394b2187 Mon Sep 17 00:00:00 2001
From: Betty Dall <betty.dall at hp.com>
Date: Sun, 13 Jan 2013 15:46:18 -0700
Subject: [PATCH] PCI/AER: pci_get_domain_bus_and_slot() call missing required
pci_dev_put()
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 <betty.dall at hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
Reviewed-by: Shuah Khan <shuah.khan at hp.com>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski at canonical.com>
---
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)
continue;
}
do_recovery(pdev, entry.severity);
+ pci_dev_put(pdev);
}
}
#endif
--
1.7.9.5
More information about the kernel-team
mailing list