diff options
Diffstat (limited to 'fs/affs')
-rw-r--r-- | fs/affs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 17352011ab67..b35f514479bf 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -280,11 +280,10 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) | |||
280 | sb->s_op = &affs_sops; | 280 | sb->s_op = &affs_sops; |
281 | sb->s_flags |= MS_NODIRATIME; | 281 | sb->s_flags |= MS_NODIRATIME; |
282 | 282 | ||
283 | sbi = kmalloc(sizeof(struct affs_sb_info), GFP_KERNEL); | 283 | sbi = kzalloc(sizeof(struct affs_sb_info), GFP_KERNEL); |
284 | if (!sbi) | 284 | if (!sbi) |
285 | return -ENOMEM; | 285 | return -ENOMEM; |
286 | sb->s_fs_info = sbi; | 286 | sb->s_fs_info = sbi; |
287 | memset(sbi, 0, sizeof(*sbi)); | ||
288 | init_MUTEX(&sbi->s_bmlock); | 287 | init_MUTEX(&sbi->s_bmlock); |
289 | 288 | ||
290 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, | 289 | if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, |