legacy/i810: Fix memset(sizeof(*ptr)) rather than memset(sizeof(ptr))
Clear the entire structure and not the first 4 bytes... Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d3e15d1460
commit
2ea12b56d4
|
|
@ -959,7 +959,7 @@ I810DRIFinishScreenInit(ScreenPtr pScreen)
|
|||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
I810Ptr info = I810PTR(pScrn);
|
||||
|
||||
memset(sPriv, 0, sizeof(sPriv));
|
||||
memset(sPriv, 0, sizeof(*sPriv));
|
||||
|
||||
/* Have shadow run only while there is 3d active.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue