summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-03-29 09:25:04 +1000
committerDave Airlie <airlied@linux.ie>2007-03-29 09:25:04 +1000
commit3f70518f0bcf36a1e2c82db962324dbdee106f67 (patch)
tree3da8e8c281037074b60d89790705f7dec7a87428 /linux-core
parentbdabc8f9986bf4e190f8e4a24466dec551b08006 (diff)
drm/bo: avoid oops if the memory manager for this type isn't initialised
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c3
1 files changed, 3 insertions, 0 deletions
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;