1
0
Fork 0

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
hifive-unleashed-5.1
Betty Dall 2013-01-13 15:46:18 -07:00 committed by Bjorn Helgaas
parent d1c3ed669a
commit a82b6af37d
1 changed files with 1 additions and 0 deletions

View File

@ -630,6 +630,7 @@ static void aer_recover_work_func(struct work_struct *work)
continue;
}
do_recovery(pdev, entry.severity);
pci_dev_put(pdev);
}
}
#endif