projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de26cc
)
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 19:48:26 +0000
(13:48 -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 1d940603fa876b7d8d3bee63e7503ee95681065f..e48e10d7c061f6e73ea70cbf4bcbe689e92e2ef9 100644
(file)
--- a/
src/mesa/drivers/dri/common/dri_util.c
+++ b/
src/mesa/drivers/dri/common/dri_util.c
@@
-778,7
+778,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;