linux/drivers/gpu/drm/amd
Christophe JAILLET a1d6b1901a drm/amdgpu: check memory allocation failure
Check memory allocation failure and return -ENOMEM in such a case.

'num_post_dep_syncobjs' still has to be set to 0 before the test in order
to have it initialized if 'amdgpu_cs_parser_fini()' is called to free
resources.

The calling graph would be, in such a case!
   failure in amdgpu_cs_process_syncobj_out_dep()
      ---> error code returned by amdgpu_cs_dependencies()
         --> amdgpu_cs_parser_fini() is called

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-08-24 14:27:43 -04:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amdgpu: check memory allocation failure 2017-08-24 14:27:43 -04:00
amdkfd drm/amdkfd: Implement image tiling mode support v2 2017-08-15 23:00:22 -04:00
include drm/amdgpu/gfx8: fix spelling typo in mqd allocation 2017-08-24 11:48:40 -04:00
powerplay drm/amd/powerplay: ACG frequency added in PPTable 2017-08-24 11:48:43 -04:00
scheduler drm/amdgpu: discard commands of killed processes 2017-08-24 11:48:42 -04:00