Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/amd/display: Use kvfree() to free coeff in" failed to apply to 5.8-stable tree

PATCH [email protected] 1 participant 1 message Aug 20, 2020

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 5.8-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")
drivers/gpu/drm/amd/display/modules/color/color_gamma.c +1 -1
index 9431b48aecb4..56bb1f9f77ce 100644
@@ -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;
 }