Commit b174084
drm/amd/display: Only finalize atomic_obj if it was initialized
[Why]
If amdgpu_dm failed to initalize before amdgpu_dm_initialize_drm_device()
completed then freeing atomic_obj will lead to list corruption.
[How]
Check if atomic_obj state is initialized before trying to free.
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Ivan Lipski <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>1 parent a5ce869 commit b174084
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5410 | 5410 | | |
5411 | 5411 | | |
5412 | 5412 | | |
5413 | | - | |
| 5413 | + | |
| 5414 | + | |
5414 | 5415 | | |
5415 | 5416 | | |
5416 | 5417 | | |
| |||
0 commit comments