]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PCI/AER: Take reference on error devices
authorKeith Busch <keith.busch@intel.com>
Thu, 20 Sep 2018 16:27:09 +0000 (10:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Sep 2018 17:18:08 +0000 (12:18 -0500)
commit60271ab044a53edb9dcbe76bebea2221c4ff04d9
tree08fb7f1367b8f72f6dda95b78b5a1cd5d734fd08
parent4f802170a861265680cad03f47b19c4c3a137052
PCI/AER: Take reference on error devices

Error handling may be running in parallel with a hot removal.  Reference
count the device during AER handling so the device can not be freed while
AER wants to reference it.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sinan Kaya <okaya@kernel.org>
drivers/pci/pcie/aer.c