]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: amdgpu_device_recover_vram got NULL of shadow->parent
authorwentalou <Wentao.Lou@amd.com>
Tue, 16 Apr 2019 07:09:16 +0000 (15:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2019 16:32:56 +0000 (11:32 -0500)
commit3712ed6686f2c80c2741ba898fd1a50fd635526c
treefef6911264842396f259da6cd03f8dce66c56437
parent4dc702f90c822ca09482a1d9a5a7b3e592428dc8
drm/amdgpu: amdgpu_device_recover_vram got NULL of shadow->parent

amdgpu_bo_destroy had a bug by calling amdgpu_bo_unref outside mutex_lock.
If amdgpu_device_recover_vram executed between amdgpu_bo_unref and list_del_init,
it would get NULL of shadow->parent, then caused Call Trace and GPU reset failed.

Signed-off-by: Wentao Lou <Wentao.Lou@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_object.c