commit | 36e499b2490a470a9a1e8d40096b4e397efac056 | [log] [tgz] |
---|---|---|
author | wentalou <Wentao.Lou@amd.com> | Tue Apr 16 15:09:16 2019 +0800 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri Apr 19 11:32:56 2019 -0500 |
tree | fef6911264842396f259da6cd03f8dce66c56437 | |
parent | 20299a8812dccdd24acfaa5f935fa8d81222bf9c [diff] |
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>