]> git.baikalelectronics.ru Git - 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)
commitc80c4588f795d900d9e0205ac50a542b01dbb92f
tree08fb7f1367b8f72f6dda95b78b5a1cd5d734fd08
parentad7171fa49e41f9c501814885f7a208750ff9820
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