Commit baf4e79
drm/amdgpu: Fix error handling in slot reset
[ Upstream commit b57c4ec ]
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 bb71362182e59caa227e4192da5a612b09349696)
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f85294c commit baf4e79
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7203 | 7203 | | |
7204 | 7204 | | |
7205 | 7205 | | |
| 7206 | + | |
| 7207 | + | |
| 7208 | + | |
| 7209 | + | |
| 7210 | + | |
| 7211 | + | |
| 7212 | + | |
| 7213 | + | |
| 7214 | + | |
7206 | 7215 | | |
7207 | 7216 | | |
7208 | 7217 | | |
| |||
7243 | 7252 | | |
7244 | 7253 | | |
7245 | 7254 | | |
7246 | | - | |
7247 | 7255 | | |
7248 | | - | |
7249 | 7256 | | |
7250 | | - | |
7251 | 7257 | | |
7252 | | - | |
| 7258 | + | |
7253 | 7259 | | |
7254 | | - | |
7255 | | - | |
7256 | 7260 | | |
7257 | 7261 | | |
7258 | | - | |
7259 | 7262 | | |
7260 | 7263 | | |
7261 | 7264 | | |
| |||
0 commit comments