Skip to content

Commit 81921a8

Browse files
evdenisalexdeucher
authored andcommitted
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: e752058 ("drm/amd/display: Optimize gamma calculations") Cc: [email protected] Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8d286e2 commit 81921a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/modules/color/color_gamma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static bool build_regamma(struct pwl_float_data_ex *rgb_regamma,
843843
pow_buffer_ptr = -1; // reset back to no optimize
844844
ret = true;
845845
release:
846-
kfree(coeff);
846+
kvfree(coeff);
847847
return ret;
848848
}
849849

0 commit comments

Comments
 (0)