public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/6] IA64: fix memset size error
@ 2007-11-05  2:17 Li Zefan
  2007-11-05  2:20 ` Li Zefan
  2007-11-05  3:23 ` Simon Horman
  0 siblings, 2 replies; 4+ messages in thread
From: Li Zefan @ 2007-11-05  2:17 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, tony.luck, linux-ia64

The size arguments passing to memset is wrong.

Signed-off-by Li Zefan <lizf@cn.fujitsu.com>

---
 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 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;
 }
-- 
1.5.3.rc7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-05  3:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05  2:17 [PATCH 2/6] IA64: fix memset size error Li Zefan
2007-11-05  2:20 ` Li Zefan
2007-11-05  3:23   ` Simon Horman
2007-11-05  3:23 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox