]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()
authorBetty Dall <betty.dall@hp.com>
Sun, 13 Jan 2013 22:46:18 +0000 (15:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jan 2013 04:47:43 +0000 (20:47 -0800)
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>
drivers/pci/pcie/aer/aerdrv_core.c

index 0ca053538146b92d9a80d7e306d05b52a5b3bfc3..a56105b66f12868c0c282472ac44af7cca0fb704 100644 (file)
@@ -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