diff options
author | Betty Dall <betty.dall@hp.com> | 2013-01-13 15:46:18 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-27 20:49:01 -0800 |
commit | 8dd19b22e59d25a3730c3b536ad9cdc2561517bf (patch) | |
tree | 8cb8a72cf513d18d9c2ed79b0b6cb9eac537f416 | |
parent | 88bf96babf604524df116b3e9c8400020bc87724 (diff) | |
download | lwn-8dd19b22e59d25a3730c3b536ad9cdc2561517bf.tar.gz lwn-8dd19b22e59d25a3730c3b536ad9cdc2561517bf.zip |
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@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | 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 af4e31cd3a3b..43caf53b82c0 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 |