Re: [PATCH] drm/amdgpu: check memory allocation failure

2017-08-24 Thread Alex Deucher
On Wed, Aug 23, 2017 at 4:39 AM, Christian König wrote: > Am 23.08.2017 um 07:52 schrieb Christophe JAILLET: >> >> 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

[PATCH] drm/amdgpu: check memory allocation failure

2017-08-23 Thread Christophe JAILLET
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

Re: [PATCH] drm/amdgpu: check memory allocation failure

2017-08-23 Thread Christian König
Am 23.08.2017 um 07:52 schrieb Christophe JAILLET: 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