mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 07:00:11 +01:00
drm/bo: avoid oops if the memory manager for this type isn't initialised
This commit is contained in:
parent
bdabc8f998
commit
3f70518f0b
1 changed files with 3 additions and 0 deletions
|
|
@ -832,6 +832,9 @@ int drm_bo_mem_space(drm_buffer_object_t * bo,
|
|||
mem_type = prios[i];
|
||||
man = &bm->man[mem_type];
|
||||
|
||||
if (!man->has_type)
|
||||
continue;
|
||||
|
||||
if (!drm_bo_mt_compatible(man, mem_type, mem->mask, &cur_flags))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue