summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-12-13 10:40:36 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2007-12-13 10:40:36 +0000
commit35a8b61317b57fcaaf5f7df06b0e2b532eddb9cb (patch)
treede4961d9c6b09237e8e7568abd219ab487f04290
parent7dcaf0cdbb57dcf85aa8798736948c280d3966b2 (diff)
catch an out of memory condition
-rw-r--r--linux-core/drm_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 2b8ef1bf..d308dcfd 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -925,7 +925,7 @@ int drm_bo_mem_space(struct drm_buffer_object *bo,
ret = drm_bo_mem_force_space(dev, mem, mem_type, no_wait);
- if (ret == 0) {
+ if (ret == 0 && mem->mm_node) {
mem->flags = cur_flags;
return 0;
}