dri: Fix problems with unitialized values in dri screen object.
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>
This commit is contained in:
committed by
Brian Paul
parent
9676ed27fe
commit
d80b36f64f
@@ -763,7 +763,7 @@ dri2CreateNewScreen(int scrn, int fd,
|
||||
if (driDriverAPI.InitScreen2 == NULL)
|
||||
return NULL;
|
||||
|
||||
psp = _mesa_malloc(sizeof(*psp));
|
||||
psp = _mesa_calloc(sizeof(*psp));
|
||||
if (!psp)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user