Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14827
b: refs/heads/master
c: f8e9884
h: refs/heads/master
i:
  14825: 9710dd0
  14823: dc97dd3
v: v3
  • Loading branch information
Linus Torvalds committed Nov 30, 2005
1 parent e4b3011 commit b164e6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 8926bfa7462d4c3f8b05cca929e0c4bcde93ae38
refs/heads/master: f8e988436b9d83b20bc5cc378f1a8034816ae6a6
5 changes: 4 additions & 1 deletion trunk/drivers/char/drm/drm_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,10 @@ int drm_addctx(struct inode *inode, struct file *filp,

if (ctx.handle != DRM_KERNEL_CONTEXT) {
if (dev->driver->context_ctor)
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;
}
}

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

0 comments on commit b164e6c

Please sign in to comment.