]> www.infradead.org Git - nvme.git/commit
powerpc/eeh: avoid possible crash when edev->pdev changes
authorGanesh Goudar <ganeshgr@linux.ibm.com>
Mon, 17 Jun 2024 14:02:40 +0000 (19:32 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Jun 2024 01:54:27 +0000 (11:54 +1000)
commita1216e62d039bf63a539bbe718536ec789a853dd
tree76fb7340c50bd94259617d27ad3946572426d247
parent1a14150e1656f7a332a943154fc486504db4d586
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
arch/powerpc/kernel/eeh_pe.c