drm/radeon: Use drm_calloc_ab for CS relocs
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 16 Apr 2015 02:17:27 +0000 (11:17 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2015 13:54:50 +0000 (09:54 -0400)
commitb421ed15d2c3039eb724680e4de1e4b2bd196a9a
tree68721913ae096198b2fc65ffbcdcb501f900caa4
parent59fd7e4b0b0769638b5162e56c28bbb027a118d3
drm/radeon: Use drm_calloc_ab for CS relocs

The number of relocs is passed in by userspace and can be large. It has
been observed to cause kcalloc failures in the wild.

Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_cs.c