projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
840d514
)
drm/amdgpu: let bo_list handler start from 1
author
monk.liu
<
[email protected]
>
Mon, 27 Apr 2015 02:38:16 +0000
(10:38 +0800)
committer
Alex Deucher
<
[email protected]
>
Thu, 4 Jun 2015 01:03:22 +0000
(21:03 -0400)
this could prevent mis-understanding, because libdrm side will consider
no bo_list created if handleis zero
Signed-off-by: monk.liu <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
index 819fb861ac046027bc23998e7498c3fc13e0be78..36d34e0afbc3a5cacb51d590af6506c62a7d58ee 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
@@
-43,7
+43,7
@@
static int amdgpu_bo_list_create(struct amdgpu_fpriv *fpriv,
mutex_lock(&fpriv->bo_list_lock);
r = idr_alloc(&fpriv->bo_list_handles, *result,
-
0
, 0, GFP_KERNEL);
+
1
, 0, GFP_KERNEL);
if (r < 0) {
mutex_unlock(&fpriv->bo_list_lock);
kfree(*result);