]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Free gamma after calculating legacy transfer function
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 11 Oct 2019 16:26:10 +0000 (12:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:07 +0000 (16:50 -0400)
commite40d6b17877b9573dc1d3b29303ba44f025e81a5
tree1dc8f3e0e97a30220b391e0ccdfd3a7a3ba40fbe
parent589fc0aa92df249ec1fdcc08f94fb7f083464ad7
drm/amd/display: Free gamma after calculating legacy transfer function

[Why]
We're leaking memory by not freeing the gamma used to calculate the
transfer function for legacy gamma.

[How]
Release the gamma after we're done with it.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c