Commit 4bb176a0 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] Affs sizeof()

Affs: Make sure the sizeof() is always correct (from Roman Zippel)
parent 4c2278cc
...@@ -298,8 +298,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -298,8 +298,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
if (!sbi) if (!sbi)
return -ENOMEM; return -ENOMEM;
sb->s_fs_info = sbi; sb->s_fs_info = sbi;
memset(sbi, 0, sizeof(struct affs_sb_info)); memset(sbi, 0, sizeof(*sbi));
init_MUTEX(&sbi->s_bmlock); init_MUTEX(&sbi->s_bmlock);
if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment