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>
Tue, 15 May 2018 18:44:17 +0000 (13:44 -0500)
commitf7dbe9186d85dd63df7868d408fea6859281c446
tree3a91b1f8d4403c6c60531176e903c960d2bb0574
parentf3336254263c3b6a7734379084f4873a335f1577
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