From f4c2ff65ba0168f9e5283890e22add4ed6cb9ba9 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Wed, 14 Nov 2007 16:58:33 -0800 Subject: drivers/video/ps3fb: fix memset size error patch 3cc2c17700c98b0af778566b0af6292b23b01430 in mainline. The size passing to memset is wrong. Signed-off-by Li Zefan Acked-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- drivers/video/ps3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index 646ec823c168..0f2a7ba6c824 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -659,7 +659,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; } -- cgit v1.2.3