Skip to content

Commit 43a5627

Browse files
evdenisalexdeucher
authored andcommitted
drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()
Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 81921a8 commit 43a5627

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
@@ -1777,7 +1777,7 @@ bool calculate_user_regamma_ramp(struct dc_transfer_func *output_tf,
17771777

17781778
kfree(rgb_regamma);
17791779
rgb_regamma_alloc_fail:
1780-
kvfree(rgb_user);
1780+
kfree(rgb_user);
17811781
rgb_user_alloc_fail:
17821782
return ret;
17831783
}

0 commit comments

Comments
 (0)