[PATCH] Affs sizeof()

From: Geert Uytterhoeven (geert@linux-m68k.org)
Date: Wed Mar 19 2003 - 07:29:40 EST


Affs: Make sure the sizeof() is always correct (from Roman Zippel)

--- 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,

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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:26 EST