FAILED: patch "[PATCH] drm/amd/display: Use kvfree() to free coeff in" failed to apply to 5.7-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.7-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 8425400759749e23aaa831f2482b96211201af33 Mon Sep 17 00:00:00 2001
From: Denis Efremov <[email protected]>
Date: Fri, 5 Jun 2020 20:37:43 +0300
Subject: [PATCH] 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")
Signed-off-by Denis Efremov <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c +1 -1
@@ -843,7 +843,7 @@ static bool build_regamma(struct pwl_float_data_ex *rgb_regamma, pow_buffer_ptr =-1 ;// reset back to no optimize ret = true; release: -kfree (coeff); +kvfree (coeff);return ret; }