mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/amdgpu: Fix error handling in slot reset
[ Upstream commitb57c4ec98c] If the device has not recovered after slot reset is called, it goes to out label for error handling. There it could make decision based on uninitialized hive pointer and could result in accessing an uninitialized list. Initialize the list and hive properly so that it handles the error situation and also releases the reset domain lock which is acquired during error_detected callback. Fixes:732c6cefc1("drm/amdgpu: Replace tmp_adev with hive in amdgpu_pci_slot_reset") Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Ce Sun <cesun102@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commitbb71362182) Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5c42d9f8b0
commit
73e8bdf142
1 changed files with 10 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue