drivers/video/ps3fb: fix memset size error
The size passed to memset is wrong. Signed-off-by Li Zefan <lizf@cn.fujitsu.com> Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -727,7 +727,7 @@ static int ps3fb_blank(int blank, struct fb_info *info)
|
|||||||
|
|
||||||
static int ps3fb_get_vblank(struct fb_vblank *vblank)
|
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;
|
vblank->flags = FB_VBLANK_HAVE_VSYNC;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user