OSDN Git Service

amdgpu: replace alloca with calloc v2
authorJammy Zhou <Jammy.Zhou@amd.com>
Mon, 18 May 2015 12:57:41 +0000 (20:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:49 +0000 (13:47 -0400)
commit3f1ca0f9399778d7f6599023e1a236ddef1d3458
treec3c520327d54cad59332e7bea12fc9d281abd290
parent8cf8ac1539183c35883b7e924a211d85ed046217
amdgpu: replace alloca with calloc v2

use heap memory instead of stack memory to avoid potential stack overflow
when a large number of resources are used for the bo_list.

v2: some minor improvement

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu_bo.c