]> 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)
commitb2ec5e2c5d22cb0723c85535ad8e86d44d55fb03
tree588220e79cb0bdd265d9601841cb6cc173d6fe0c
parentd6ed908833579d51774011b5ebecf3493884fbb1
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