mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 00:10:11 +01:00
catch an out of memory condition
This commit is contained in:
parent
7dcaf0cdbb
commit
35a8b61317
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue