]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:22 +0000 (17:49 +0200)
commitb89722d873c7544fe74f50b7a26e3f2ae50e32ae
treee486ef5a724afb718b2c3c2d113a8a859df709a2
parent48d3b36959153cc427964c519b5430024fd61e10
drm/amd/display: Use kvfree() to free coeff in build_regamma()

commit 81921a828b94ce2816932c19a5ec74d302972833 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c