diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2017-08-01 22:34:55 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-02 14:29:58 -0400 |
commit | 68c9793d63e02f0683fdbf5e82d148d72ed1dbe0 (patch) | |
tree | c94f75cdedcfb98e118773f0bf39f1402d927f06 /drivers/gpu | |
parent | 5694785cf09bf0e7bd8e5f62361ea34fa162a4a0 (diff) | |
download | linux-68c9793d63e02f0683fdbf5e82d148d72ed1dbe0.tar.gz linux-68c9793d63e02f0683fdbf5e82d148d72ed1dbe0.tar.bz2 linux-68c9793d63e02f0683fdbf5e82d148d72ed1dbe0.zip |
drm/amdgpu: Use list_del_init in amdgpu_mn_unregister
Otherwise bo->shadow_list (which is aliased by bo->mn_list) will not
appear empty in amdgpu_ttm_bo_destroy and cause an oops when freeing
former userptr BOs.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index 38f739fb727b..6558a3ed57a7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c @@ -359,7 +359,7 @@ void amdgpu_mn_unregister(struct amdgpu_bo *bo) head = bo->mn_list.next; bo->mn = NULL; - list_del(&bo->mn_list); + list_del_init(&bo->mn_list); if (list_empty(head)) { struct amdgpu_mn_node *node; |