]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/amdgpu: Use list_del_init in amdgpu_mn_unregister
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 2 Aug 2017 02:34:55 +0000 (22:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Aug 2017 18:29:58 +0000 (14:29 -0400)
commit68c9793d63e02f0683fdbf5e82d148d72ed1dbe0
treec94f75cdedcfb98e118773f0bf39f1402d927f06
parent5694785cf09bf0e7bd8e5f62361ea34fa162a4a0
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c