Revision bd91b56cb3b27492963caeb5fccefe20a986ca8d authored by Thomas Tai on 26 July 2018, 17:13:04 UTC, committed by Bjorn Helgaas on 26 July 2018, 17:13:04 UTC
When an fatal error is received by a non-bridge device, the device is removed, and pci_stop_and_remove_bus_device() deallocates the device structure. The freed device structure is used by subsequent code to send uevents and print messages. Hold a reference on the device until we're finished using it. This is not an ideal fix because pcie_do_fatal_recovery() should not use the device at all after removing it, but that's too big a project for right now. Fixes: 7e9084b36740 ("PCI/AER: Handle ERR_FATAL with removal and re-enumeration of devices") Signed-off-by: Thomas Tai <thomas.tai@oracle.com> [bhelgaas: changelog, reduce get/put coverage] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 270ed73
File | Mode | Size |
---|---|---|
1.Intro.rst | -rw-r--r-- | 14.3 KB |
2.Process.rst | -rw-r--r-- | 23.6 KB |
3.Early-stage.rst | -rw-r--r-- | 10.7 KB |
4.Coding.rst | -rw-r--r-- | 21.3 KB |
5.Posting.rst | -rw-r--r-- | 15.6 KB |
6.Followthrough.rst | -rw-r--r-- | 11.8 KB |
7.AdvancedTopics.rst | -rw-r--r-- | 9.5 KB |
8.Conclusion.rst | -rw-r--r-- | 3.1 KB |
adding-syscalls.rst | -rw-r--r-- | 26.2 KB |
applying-patches.rst | -rw-r--r-- | 16.9 KB |
changes.rst | -rw-r--r-- | 12.4 KB |
clang-format.rst | -rw-r--r-- | 6.4 KB |
code-of-conflict.rst | -rw-r--r-- | 1.4 KB |
coding-style.rst | -rw-r--r-- | 36.1 KB |
conf.py | -rw-r--r-- | 260 bytes |
development-process.rst | -rw-r--r-- | 810 bytes |
email-clients.rst | -rw-r--r-- | 10.8 KB |
howto.rst | -rw-r--r-- | 26.9 KB |
index.rst | -rw-r--r-- | 1.3 KB |
kernel-docs.rst | -rw-r--r-- | 24.2 KB |
kernel-driver-statement.rst | -rw-r--r-- | 4.1 KB |
kernel-enforcement-statement.rst | -rw-r--r-- | 4.9 KB |
license-rules.rst | -rw-r--r-- | 13.7 KB |
magic-number.rst | -rw-r--r-- | 10.2 KB |
maintainer-pgp-guide.rst | -rw-r--r-- | 37.1 KB |
management-style.rst | -rw-r--r-- | 13.1 KB |
stable-api-nonsense.rst | -rw-r--r-- | 9.3 KB |
stable-kernel-rules.rst | -rw-r--r-- | 6.5 KB |
submit-checklist.rst | -rw-r--r-- | 4.9 KB |
submitting-drivers.rst | -rw-r--r-- | 6.6 KB |
submitting-patches.rst | -rw-r--r-- | 36.7 KB |
volatile-considered-harmful.rst | -rw-r--r-- | 5.6 KB |
Computing file changes ...