Commit b57c4ec
drm/amdgpu: Fix error handling in slot reset
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: 732c6ce ("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 commit bb71362)1 parent a5fe1a5 commit b57c4ec
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7059 | 7059 | | |
7060 | 7060 | | |
7061 | 7061 | | |
| 7062 | + | |
| 7063 | + | |
| 7064 | + | |
| 7065 | + | |
| 7066 | + | |
| 7067 | + | |
| 7068 | + | |
| 7069 | + | |
| 7070 | + | |
7062 | 7071 | | |
7063 | 7072 | | |
7064 | 7073 | | |
| |||
7099 | 7108 | | |
7100 | 7109 | | |
7101 | 7110 | | |
7102 | | - | |
7103 | 7111 | | |
7104 | | - | |
7105 | 7112 | | |
7106 | | - | |
7107 | 7113 | | |
7108 | | - | |
| 7114 | + | |
7109 | 7115 | | |
7110 | | - | |
7111 | | - | |
7112 | 7116 | | |
7113 | 7117 | | |
7114 | | - | |
7115 | 7118 | | |
7116 | 7119 | | |
7117 | 7120 | | |
| |||
0 commit comments