drm/amd/display: Use kvzalloc for potentially large allocations
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 17 Apr 2018 10:25:22 +0000 (12:25 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 May 2018 20:16:13 +0000 (15:16 -0500)
commitbd4caed47a19f25fe8674344ea06d469c27ac314
treea2004cce94fef46dbe20811da0579f9d896e2f54
parent018d82e5f02ef3583411bcaa4e00c69786f46f19
drm/amd/display: Use kvzalloc for potentially large allocations

Allocating up to 32 physically contiguous pages can easily fail (and has
failed for me), and isn't necessary anyway.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
drivers/gpu/drm/amd/display/modules/color/color_gamma.c