]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit090e4544ed576f051e63396788dbd8bee0f7e1d9
tree3a91b1f8d4403c6c60531176e903c960d2bb0574
parenta66e631a27f0ec20059a52977a5e2b2e67b6e73f
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