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

drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

Use kfree() instead of kvfree() to free rgb_user in
calculate_user_regamma_ramp() because the memory is allocated with
kcalloc().

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
43a56277 81921a82

+1 -1
+1 -1
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
··· 1777 1777 1778 1778 kfree(rgb_regamma); 1779 1779 rgb_regamma_alloc_fail: 1780 - kvfree(rgb_user); 1780 + kfree(rgb_user); 1781 1781 rgb_user_alloc_fail: 1782 1782 return ret; 1783 1783 }