Messages in this thread Patch in this message | | | Date | Wed, 19 Mar 2003 13:29:40 +0100 (MET) | From | Geert Uytterhoeven <> | Subject | [PATCH] Affs sizeof() |
| |
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/
| |