linux/drivers/gpu/drm/amd
Hersen Wu 52cbcf9805 drm/amd/display: Release state memory if amdgpu_dm_create_color_properties fail
[Why]
Coverity reports RESOURCE_LEAK warning. State memory
is not released if dm_create_color_properties fail.

[How]
Call kfree(state) before return.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-05-02 16:18:17 -04:00
..
acp
amdgpu drm/amd/pm: support mode1 reset on smu_v14_0_3 2024-05-02 16:18:15 -04:00
amdkfd drm/amdkfd: mark GFX12 system and peer GPU memory mappings as MTYPE_NC 2024-05-02 16:18:13 -04:00
amdxcp drm/amd/amdxcp: Use unique name for partition dev 2024-05-02 15:43:55 -04:00
display drm/amd/display: Release state memory if amdgpu_dm_create_color_properties fail 2024-05-02 16:18:17 -04:00
include drm/amdgpu/mes12: add legacy setting hw resource interface 2024-05-02 16:18:14 -04:00
pm drm/amd/pm: add pstate support for SMU_14_0_2 2024-05-02 16:18:16 -04:00