projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea0921
)
targets/egl: Fix crashes from loading invalid modules.
author
Chia-I Wu
<olv@lunarg.com>
Fri, 10 Sep 2010 08:01:37 +0000
(16:01 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Fri, 10 Sep 2010 08:03:04 +0000
(16:03 +0800)
Be defensive.
src/gallium/targets/egl/egl.c
patch
|
blob
|
history
diff --git
a/src/gallium/targets/egl/egl.c
b/src/gallium/targets/egl/egl.c
index fb5bfd4061ccfdc70484da2ff4f6853c031a4092..786d5d1105e783b2b9299fd1ee35abfb0a636344 100644
(file)
--- a/
src/gallium/targets/egl/egl.c
+++ b/
src/gallium/targets/egl/egl.c
@@
-184,9
+184,6
@@
load_pipe_module(struct pipe_module *pmod, const char *name)
}
}
- if (!pmod->drmdd)
- pmod->name = NULL;
-
return (pmod->drmdd != NULL);
}
@@
-305,7
+302,7
@@
static struct pipe_screen *
create_drm_screen(const char *name, int fd)
{
struct pipe_module *pmod = get_pipe_module(name);
- return (pmod && pmod->drmdd->create_screen) ?
+ return (pmod && pmod->drmdd
&& pmod->drmdd
->create_screen) ?
pmod->drmdd->create_screen(fd) : NULL;
}