Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18249
b: refs/heads/master
c: b5e9fc1
h: refs/heads/master
i:
  18247: c8ec416
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 2, 2006
1 parent 3a9be61 commit 2035b4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f26c473cdf557ea6e8f267d34eee82d30473a363
refs/heads/master: b5e9fc13dd0f25a2f422000c185f491bfd4f7335
4 changes: 4 additions & 0 deletions trunk/drivers/char/drm/drm_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +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)) {
DRM_DEBUG("Running out of ctxs or memory.\n");
return -ENOMEM;
}
dev->driver->context_ctor(dev, ctx.handle);
}

Expand Down

0 comments on commit 2035b4b

Please sign in to comment.