Affs sizeof()
diff mbox series

Message ID 200303191229.h2JCTeG01024@vervain.sonytel.be
State New, archived
Headers show
Series
  • 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)


Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Patch
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));
 	init_MUTEX(&sbi->s_bmlock);
 
 	if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block,