From: Li Zefan Date: Thu, 15 Nov 2007 00:58:33 +0000 (-0800) Subject: drivers/video/ps3fb: fix memset size error X-Git-Tag: v2.6.24-rc3~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cc2c17700c98b0af778566b0af6292b23b01430;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drivers/video/ps3fb: fix memset size error The size passed to memset is wrong. Signed-off-by Li Zefan Acked-by: Geert Uytterhoeven Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index b3463dd..75836aa 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c @@ -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; }