projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26c473
)
drm: fix issue with contexts running out of RAM
author
Dave Airlie
<airlied@starflyer.(none)>
Mon, 2 Jan 2006 08:23:44 +0000
(19:23 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Mon, 2 Jan 2006 08:23:44 +0000
(19:23 +1100)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_context.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm_context.c
b/drivers/char/drm/drm_context.c
index bdd168d88f49b0ab6a0103f6c32b20e4fde46105..7a7bcef2aa84e4ac9d2ca9cfb3f627be59305cb8 100644
(file)
--- a/
drivers/char/drm/drm_context.c
+++ b/
drivers/char/drm/drm_context.c
@@
-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);
}
This page took
0.024183 seconds
and
5
git commands to generate.