Skip to content

Commit

Permalink
drivers/video/ps3fb: fix memset size error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Nov 15, 2007
1 parent 682d73f commit 3cc2c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3cc2c17

Please sign in to comment.