]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit318a75de340e392eec9a4fa3ec81d653e0b80285
treeb054128b89c648df719b37ce3ed5dace2cf65197
parent61c808d2536aceae647189dc8f43b6e3dffaeea3
drm/amd/display: Use kvfree() to free coeff in build_regamma()

BugLink: https://bugs.launchpad.net/bugs/1885322
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c