Affs sizeof()
diff mbox series

Message ID
State New, archived
Headers show
  • Affs sizeof()
Related show

Commit Message

Geert Uytterhoeven March 19, 2003, 12:29 p.m. UTC
Affs: Make sure the sizeof() is always correct (from Roman Zippel)



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

diff mbox series

--- linux-2.5.x/fs/affs/super.c	Tue Mar 18 11:27:51 2003
+++ linux-m68k-2.5.x/fs/affs/super.c	Tue Mar 18 13:15:12 2003
@@ -298,8 +298,7 @@ 
 	if (!sbi)
 		return -ENOMEM;
 	sb->s_fs_info = sbi;
-	memset(sbi, 0, sizeof(struct affs_sb_info));
+	memset(sbi, 0, sizeof(*sbi));
 	if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block,