OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b54262f
)
drm/nouveau: Return error from nouveau_gpuobj_new if we're out of RAMIN.
author
Francisco Jerez
<currojerez@riseup.net>
Mon, 1 Nov 2010 17:06:28 +0000
(18:06 +0100)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 18 Nov 2010 04:38:54 +0000
(14:38 +1000)
Reported-by: Tomas Miljenovic <tomasmiljenovic@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_object.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_object.c
b/drivers/gpu/drm/nouveau/nouveau_object.c
index
896cf86
..
dd572ad
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_object.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_object.c
@@
-129,7
+129,7
@@
nouveau_gpuobj_new(struct drm_device *dev, struct nouveau_channel *chan,
if (ramin == NULL) {
spin_unlock(&dev_priv->ramin_lock);
nouveau_gpuobj_ref(NULL, &gpuobj);
- return
ret
;
+ return
-ENOMEM
;
}
ramin = drm_mm_get_block_atomic(ramin, size, align);