drm/amdgpu: fix parser init error path to avoid crash in parser fini
authorDave Airlie <airlied@redhat.com>
Fri, 10 Mar 2017 02:13:04 +0000 (12:13 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:19 +0000 (10:07 +0100)
commit063c753ef78bee13265bf02df185704e8fdff1f9
tree3c14051a80528bb296457ecbfb75092cb3dc2877
parent3d40364d333e3de4cc2e49c80ad8ddb242c46315
drm/amdgpu: fix parser init error path to avoid crash in parser fini

[ Upstream commit 607523d19c9d67ba4cf7bdaced644f11ed04992c ]

If we don't reset the chunk info in the error path, the subsequent
fini path will double free.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c