You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drm/amdgpu: let bo_list handler start from 1
this could prevent mis-understanding, because libdrm side will consider no bo_list created if handleis zero Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -43,7 +43,7 @@ static int amdgpu_bo_list_create(struct amdgpu_fpriv *fpriv,
|
|||||||
|
|
||||||
mutex_lock(&fpriv->bo_list_lock);
|
mutex_lock(&fpriv->bo_list_lock);
|
||||||
r = idr_alloc(&fpriv->bo_list_handles, *result,
|
r = idr_alloc(&fpriv->bo_list_handles, *result,
|
||||||
0, 0, GFP_KERNEL);
|
1, 0, GFP_KERNEL);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
mutex_unlock(&fpriv->bo_list_lock);
|
mutex_unlock(&fpriv->bo_list_lock);
|
||||||
kfree(*result);
|
kfree(*result);
|
||||||
|
|||||||
Reference in New Issue
Block a user