drm: Remove "protection" around drm_vma_offset_manager_destroy()
authorChris Wilson <[email protected]>
Mon, 3 Sep 2018 09:31:55 +0000 (10:31 +0100)
committerChris Wilson <[email protected]>
Tue, 4 Sep 2018 18:00:32 +0000 (19:00 +0100)
commit5ddd6582cd7ba018b7527eed1777b7d83e6d9b62
tree2c899d75eff5d048f68d8157916ac729ec68f012
parenta9734d8ee63346865d5966551ef4aabf8016d8dd
drm: Remove "protection" around drm_vma_offset_manager_destroy()

Using a spinlock to serialize the destroy function, within the destroy
function itself does not prevent the buggy driver from shooting
themselves in the foot - either way they still have a use-after-free
issue.

Reported-by: Jia-Ju Bai <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_vma_manager.c