OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7bd351
)
drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf.c
author
Baokun Li
<libaokun1@huawei.com>
Wed, 9 Jun 2021 07:18:03 +0000
(15:18 +0800)
committer
Zack Rusin
<zackr@vmware.com>
Mon, 9 Aug 2021 20:49:48 +0000
(16:49 -0400)
Using list_move_tail() instead of list_del() + list_add_tail() in vmwgfx_cmdbuf.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210609071803.1347254-1-libaokun1@huawei.com
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
index
81b8457
..
4579612
100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
@@
-358,8
+358,7
@@
static void vmw_cmdbuf_ctx_submit(struct vmw_cmdbuf_man *man,
break;
}
- list_del(&entry->list);
- list_add_tail(&entry->list, &ctx->hw_submitted);
+ list_move_tail(&entry->list, &ctx->hw_submitted);
ctx->num_hw_submitted++;
}