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:
Chris Wilson 2012-06-01 23:22:31 +01:00
parent d3e15d1460
commit 2ea12b56d4
1 changed files with 1 additions and 1 deletions

View File

@ -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.
*/