drm/bo: avoid oops if the memory manager for this type isn't initialised

This commit is contained in:
Dave Airlie 2007-03-29 09:25:04 +10:00
parent bdabc8f998
commit 3f70518f0b

View file

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