diff options
author | Ganesh Goudar <ganeshgr@linux.ibm.com> | 2024-06-17 19:32:40 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-06-23 11:54:27 +1000 |
commit | a1216e62d039bf63a539bbe718536ec789a853dd (patch) | |
tree | 76fb7340c50bd94259617d27ad3946572426d247 /rust/kernel/alloc/vec_ext.rs | |
parent | 1a14150e1656f7a332a943154fc486504db4d586 (diff) |
powerpc/eeh: avoid possible crash when edev->pdev changes
If a PCI device is removed during eeh_pe_report_edev(), edev->pdev
will change and can cause a crash, hold the PCI rescan/remove lock
while taking a copy of edev->pdev->bus.
Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240617140240.580453-1-ganeshgr@linux.ibm.com
Diffstat (limited to 'rust/kernel/alloc/vec_ext.rs')
0 files changed, 0 insertions, 0 deletions