projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdabc8f
)
drm/bo: avoid oops if the memory manager for this type isn't initialised
author
Dave Airlie
<airlied@linux.ie>
Wed, 28 Mar 2007 23:25:04 +0000
(09:25 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Wed, 28 Mar 2007 23:25:04 +0000
(09:25 +1000)
linux-core/drm_bo.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_bo.c
b/linux-core/drm_bo.c
index
d3e89af
..
1bdc6fe
100644
(file)
--- 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;