Using list_move() instead of list_del() + list_add() in radeon_vm.c. Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Signed-off-by: Baokun Li <libaokun1@xxxxxxxxxx> --- V1->V2: CC mailist drivers/gpu/drm/radeon/radeon_vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c index 36a38adaaea9..b86c60ab0f7e 100644 --- a/drivers/gpu/drm/radeon/radeon_vm.c +++ b/drivers/gpu/drm/radeon/radeon_vm.c @@ -933,8 +933,7 @@ int radeon_vm_bo_update(struct radeon_device *rdev, } list_del_init(&bo_va->vm_status); } else { - list_del(&bo_va->vm_status); - list_add(&bo_va->vm_status, &vm->cleared); + list_move(&bo_va->vm_status, &vm->cleared); } spin_unlock(&vm->status_lock);