Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
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
..
2017-07-14 11:06:10 -04:00
2015-06-03 21:03:15 -04:00
2017-06-09 11:29:46 -04:00
2017-08-24 11:48:47 -04:00
2017-03-29 23:53:46 -04:00
2015-06-03 21:03:15 -04:00
2015-06-03 21:03:17 -04:00
2017-05-24 17:41:16 -04:00
2016-08-31 15:21:09 -04:00
2016-08-31 15:21:09 -04:00
2017-07-14 11:06:39 -04:00
2017-05-24 17:41:17 -04:00
2017-08-15 23:00:16 -04:00
2017-05-24 17:40:26 -04:00