Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18250
b: refs/heads/master
c: 1e7d519
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 2, 2006
1 parent 2035b4b commit b4ae8bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: b5e9fc13dd0f25a2f422000c185f491bfd4f7335
refs/heads/master: 1e7d51902a8bd08e37113aaf182d12233b157151
3 changes: 1 addition & 2 deletions trunk/drivers/char/drm/drm_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,10 @@ int drm_addctx(struct inode *inode, struct file *filp,

if (ctx.handle != DRM_KERNEL_CONTEXT) {
if (dev->driver->context_ctor)
if (dev->driver->context_ctor(dev, ctx.handle)) {
if (!dev->driver->context_ctor(dev, ctx.handle)) {
DRM_DEBUG("Running out of ctxs or memory.\n");
return -ENOMEM;
}
dev->driver->context_ctor(dev, ctx.handle);
}

ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST);
Expand Down

0 comments on commit b4ae8bb

Please sign in to comment.