[PATCH 5.10 36/59] powerpc/eeh: avoid possible crash when edev->pdev changes