]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 13 Jan 2013 22:46:18 +0000 (15:46 -0700)
commit993343245994837703521b4e3320f9badf9369a5
tree9afe438331bab9126b29ad1720caa0c797aa5139
parent3488c69bfc958da74cc1a2ebc3b69a93c80b12aa
PCI/AER: pci_get_domain_bus_and_slot() call missing required pci_dev_put()

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>
CC: stable@vger.kernel.org
drivers/pci/pcie/aer/aerdrv_core.c