diff options
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 992ee0b87cc3..ef910e784034 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -611,11 +611,10 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent) | |||
611 | 611 | ||
612 | UFSD("ENTER\n"); | 612 | UFSD("ENTER\n"); |
613 | 613 | ||
614 | sbi = kmalloc(sizeof(struct ufs_sb_info), GFP_KERNEL); | 614 | sbi = kzalloc(sizeof(struct ufs_sb_info), GFP_KERNEL); |
615 | if (!sbi) | 615 | if (!sbi) |
616 | goto failed_nomem; | 616 | goto failed_nomem; |
617 | sb->s_fs_info = sbi; | 617 | sb->s_fs_info = sbi; |
618 | memset(sbi, 0, sizeof(struct ufs_sb_info)); | ||
619 | 618 | ||
620 | UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); | 619 | UFSD("flag %u\n", (int)(sb->s_flags & MS_RDONLY)); |
621 | 620 | ||