]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix memleaks when atomic check fails.
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 20 Feb 2018 20:46:09 +0000 (15:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:08:41 +0000 (15:08 -0500)
commit2c57ce060e1e6ae0152a6952c0cd5061da76e106
treef7be82dd78806bbb3aa1671c0b3dd045307ae0ab
parent725cc86c6fd45a0a4a2e6863f2aad2fb7015e461
drm/amd/display: Fix memleaks when atomic check fails.

While checking plane states for updates during atomic check, we create
dc_plane_states in preparation. These dc states should be freed if
something errors.

Although the input transfer function is also freed by
dc_plane_state_release(), we should free it (on error) under the same
scope as where it is created.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c