Skip to content
Commit 44819136 authored by Yunxiang Li's avatar Yunxiang Li Committed by Christian König
Browse files

drm/ttm: fix bulk_move corruption when adding a entry



When the resource is the first in the bulk_move range, adding it again
(thus moving it to the tail) will corrupt the list since the first
pointer is not moved. This eventually lead to null pointer deref in
ttm_lru_bulk_move_del()

Fixes: fee2ede1 ("drm/ttm: rework bulk move handling v5")
Signed-off-by: default avatarYunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20230622141902.28718-3-Yunxiang.Li@amd.com


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 98703e4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment