drm/amd/display: Use kvfree() to free coeff in build_regamma()
authorDenis Efremov <efremov@linux.com>
Fri, 5 Jun 2020 17:37:43 +0000 (20:37 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jun 2020 22:00:24 +0000 (18:00 -0400)
commit81921a828b94ce2816932c19a5ec74d302972833
tree4ed5cb48ccc9381b310f937485c8a5a913029269
parent8d286e2ff4400d313955b4203fc640ca6fd9228b
drm/amd/display: Use kvfree() to free coeff in build_regamma()

Use kvfree() instead of kfree() to free coeff in build_regamma()
because the memory is allocated with kvzalloc().

Fixes: e752058b8671 ("drm/amd/display: Optimize gamma calculations")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c