]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Deallocate DML memory if allocation fails
authorChris Park <chris.park@amd.com>
Fri, 28 Jun 2024 19:09:06 +0000 (15:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:11 +0000 (17:07 -0400)
commit892abca6877a96c9123bb1c010cafccdf8ca1b75
treea5d63ac0fc7a1a77a2549a5eb43c55bf42417c84
parent35ff747c86767937ee1e0ca987545b7eed7a0810
drm/amd/display: Deallocate DML memory if allocation fails

[Why]
When DC state create DML memory allocation fails, memory is not
deallocated subsequently, resulting in uninitialized structure
that is not NULL.

[How]
Deallocate memory if DML memory allocation fails.

Reviewed-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Chris Park <chris.park@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_state.c