Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359335
b: refs/heads/master
c: 8550cb2
h: refs/heads/master
i:
  359333: a3d526e
  359331: 939a82e
  359327: a0d0aa6
v: v3
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Feb 28, 2013
1 parent a174958 commit fb38a63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e928815c1886fe628ed54623aa98d0889cf5509
refs/heads/master: 8550cb2e3a3f4a5f2f6aa40b6c99691056f85b9d
16 changes: 5 additions & 11 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,15 @@ static int ipp_create_id(struct idr *id_idr, struct mutex *lock, void *obj,

DRM_DEBUG_KMS("%s\n", __func__);

again:
/* ensure there is space available to allocate a handle */
if (idr_pre_get(id_idr, GFP_KERNEL) == 0) {
DRM_ERROR("failed to get idr.\n");
return -ENOMEM;
}

/* do the allocation under our mutexlock */
mutex_lock(lock);
ret = idr_get_new_above(id_idr, obj, 1, (int *)idp);
ret = idr_alloc(id_idr, obj, 1, 0, GFP_KERNEL);
mutex_unlock(lock);
if (ret == -EAGAIN)
goto again;
if (ret < 0)
return ret;

return ret;
*idp = ret;
return 0;
}

static void *ipp_find_obj(struct idr *id_idr, struct mutex *lock, u32 id)
Expand Down

0 comments on commit fb38a63

Please sign in to comment.