]> git.karo-electronics.de Git - karo-tx-linux.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)
commit607523d19c9d67ba4cf7bdaced644f11ed04992c
tree588220e79cb0bdd265d9601841cb6cc173d6fe0c
parentd8a8ed9758241e138933c67e40db2db2790eca19
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