drivers/video/ps3fb: fix memset size error

The size passed to memset is wrong.

Signed-off-by Li Zefan <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Li Zefan 2007-11-14 16:58:33 -08:00 • committed by Linus Torvalds
commit 3cc2c17700

View file

@ -727,7 +727,7 @@ static int ps3fb_blank(int blank, struct fb_info *info)
static int ps3fb_get_vblank(struct fb_vblank *vblank)
{
memset(vblank, 0, sizeof(&vblank));
memset(vblank, 0, sizeof(*vblank));
vblank->flags = FB_VBLANK_HAVE_VSYNC;
return 0;
}