commit | 26eedf6daec4e7937c8f0f1dde5e9b8e3dcebfd3 | [log] [tgz] |
---|---|---|
author | Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> | Wed Oct 11 17:02:02 2017 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Oct 19 15:27:06 2017 -0400 |
tree | a55fc6266c9785335edc7b8d4640f276eda81549 | |
parent | 7d0a42823ba5bdc11b4933749b147b8a6a6caae5 [diff] |
drm/amdgpu: Fix extra call to amdgpu_ctx_put. In amdgpu_cs_parser_init() in case of error handling amdgpu_ctx_put() is called without setting p->ctx to NULL after that, later amdgpu_cs_parser_fini() also calls amdgpu_ctx_put() again and mess up the reference count. Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>