Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81616542 authored by Denis Efremov's avatar Denis Efremov Committed by Sasha Levin
Browse files

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



[ Upstream commit 43a562774fceba867e8eebba977d7d42f8a2eac7 ]

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

Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f7f18158
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1862,7 +1862,7 @@ bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,

	kfree(rgb_regamma);
rgb_regamma_alloc_fail:
	kvfree(rgb_user);
	kfree(rgb_user);
rgb_user_alloc_fail:
	return ret;
}