projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9676ed2
)
dri: Fix problems with unitialized values in dri screen object.
author
Pauli Nieminen
<suokkos@gmail.com>
Fri, 7 Aug 2009 17:02:22 +0000
(10:02 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Aug 2009 17:24:47 +0000
(11:24 -0600)
This fixes crash in r200 KMS driver when pSAREA was set to 1 randomly because of memory wasn't cleared.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
src/mesa/drivers/dri/common/dri_util.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/dri_util.c
b/src/mesa/drivers/dri/common/dri_util.c
index 576494940f38f5eedcadf3aacbc28f8b8b7b2fcd..ecccc0100091d4f7d5136f28b74a76dc8b0e8044 100644
(file)
--- a/
src/mesa/drivers/dri/common/dri_util.c
+++ b/
src/mesa/drivers/dri/common/dri_util.c
@@
-763,7
+763,7
@@
dri2CreateNewScreen(int scrn, int fd,
if (driDriverAPI.InitScreen2 == NULL)
return NULL;
- psp = _mesa_
m
alloc(sizeof(*psp));
+ psp = _mesa_
c
alloc(sizeof(*psp));
if (!psp)
return NULL;