]> 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>
Wed, 9 May 2018 20:16:13 +0000 (15:16 -0500)
commit808723c1855ea3b6e542e180d936dcdb840c602b
treea2004cce94fef46dbe20811da0579f9d896e2f54
parentf7adb0577ff9c0dfc4e833b2ec2c25511d9b9c3b
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