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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:33 +0000 (04:33 +0000)
commitc4dca1575d32be2bf92b3e4501e97a0755edec67
treeca4151feae71d9d5cc118bf11e7652ffe8650b37
parentbc20c871bc118f719ada8f5771704c7cad7ef0e5
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: Ben Hutchings <ben@decadent.org.uk>
drivers/pci/pcie/aer/aerdrv_core.c