drm/amdgpu: Fix extra call to amdgpu_ctx_put.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 11 Oct 2017 21:02:02 +0000 (17:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:06 +0000 (15:27 -0400)
commit26eedf6daec4e7937c8f0f1dde5e9b8e3dcebfd3
treea55fc6266c9785335edc7b8d4640f276eda81549
parent7d0a42823ba5bdc11b4933749b147b8a6a6caae5
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c