Skip to content
Commit 033c51df authored by Ganesh Goudar's avatar Ganesh Goudar Committed by Greg Kroah-Hartman
Browse files

powerpc/eeh: avoid possible crash when edev->pdev changes



[ Upstream commit a1216e62 ]

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: default avatarGanesh Goudar <ganeshgr@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240617140240.580453-1-ganeshgr@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6b160981
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment