From: Li Zefan Date: Thu, 15 Nov 2007 00:58:33 +0000 (-0800) Subject: drivers/video/ps3fb: fix memset size error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cc2c17700c98b0af778566b0af6292b23b01430;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 b3463ddcfd60..75836aa83191 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; }