]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Mar 2017 19:27:14 +0000 (14:27 -0500)
commit2c3e29252f6bf423394ab60e444fd1312dc26e87
tree588220e79cb0bdd265d9601841cb6cc173d6fe0c
parent34531bab745ec76cc19767a2b32a3ae6268dde4f
drm/amdgpu: fix parser init error path to avoid crash in parser fini

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c