From 3f70518f0bcf36a1e2c82db962324dbdee106f67 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 29 Mar 2007 09:25:04 +1000 Subject: drm/bo: avoid oops if the memory manager for this type isn't initialised --- linux-core/drm_bo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-core/drm_bo.c') diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c index d3e89af6..1bdc6fef 100644 --- a/linux-core/drm_bo.c +++ b/linux-core/drm_bo.c @@ -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; -- cgit v1.2.3