diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-08-23 07:52:36 +0200 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-29 15:27:48 -0400 |
| commit | 06f10a537ec1d5fe68dc889a9a5d11afa49e6e0d (patch) | |
| tree | 107aa12df416bea964231cb4b8fed3138311fc90 /tools/perf/scripts/python | |
| parent | a3ce364558faa12c4f25466dfc89eb3146b8063c (diff) | |
| download | linux-06f10a537ec1d5fe68dc889a9a5d11afa49e6e0d.tar.gz linux-06f10a537ec1d5fe68dc889a9a5d11afa49e6e0d.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
