drm/radeon: Use drm_malloc_ab instead of kmalloc_array
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 20 Oct 2014 09:40:54 +0000 (18:40 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2014 14:44:34 +0000 (10:44 -0400)
commite5a5fd4df21b9c4acb67e815ec949cce594860f8
tree5b4b4f0a88d1c6cb77b876075faca9fbfa4f07d9
parent6fa455935ab956248b165f150ec6ae9106210077
drm/radeon: Use drm_malloc_ab instead of kmalloc_array

Should avoid kmalloc failures due to large number of array entries.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81991
Reviewed-by: Dave Airlie <airlied@redhat.com>
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_cs.c
drivers/gpu/drm/radeon/radeon_ring.c
drivers/gpu/drm/radeon/radeon_vm.c