Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Betty Dall and committed by
Bjorn Helgaas
a82b6af3 d1c3ed66

+1
+1
drivers/pci/pcie/aer/aerdrv_core.c
··· 630 630 continue; 631 631 } 632 632 do_recovery(pdev, entry.severity); 633 + pci_dev_put(pdev); 633 634 } 634 635 } 635 636 #endif