diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2007-11-14 16:58:33 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-26 09:42:28 -0800 |
commit | f4c2ff65ba0168f9e5283890e22add4ed6cb9ba9 (patch) | |
tree | 8bc3a2924134b1a70d849dc7cfa4f7afb9cd0dfd | |
parent | dbc8b0aca5b169a457c4057a2b7c9362d804fa24 (diff) |
drivers/video/ps3fb: fix memset size error
patch 3cc2c17700c98b0af778566b0af6292b23b01430 in mainline.
The size passing to memset is wrong.
Signed-off-by Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/video/ps3fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |