catch an out of memory condition

This commit is contained in:
Alan Hourihane 2007-12-13 10:40:36 +00:00
parent 7dcaf0cdbb
commit 35a8b61317

View file

@ -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;
}