Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Denis Efremov and committed by
Alex Deucher
81921a82 8d286e2f

+1 -1
+1 -1
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
··· 843 843 pow_buffer_ptr = -1; // reset back to no optimize 844 844 ret = true; 845 845 release: 846 - kfree(coeff); 846 + kvfree(coeff); 847 847 return ret; 848 848 } 849 849