Message ID | 1468929714-8736-1-git-send-email-weiyj_lk@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 0307ff5..aba38ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -414,8 +414,7 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p, if (e->robj->tbo.ttm->state != tt_bound && !e->user_pages) { - list_del(&e->tv.head); - list_add(&e->tv.head, &need_pages); + list_move(&e->tv.head, &need_pages); amdgpu_bo_unreserve(e->robj); }