aboutsummaryrefslogtreecommitdiffstats
path: root/fs/befs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/befs')
-rw-r--r--fs/befs/linuxvfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 845d2d690ce2..a1a09462fe47 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -791,7 +791,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
791 791
792 save_mount_options(sb, data); 792 save_mount_options(sb, data);
793 793
794 sb->s_fs_info = kmalloc(sizeof (*befs_sb), GFP_KERNEL); 794 sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL);
795 if (sb->s_fs_info == NULL) { 795 if (sb->s_fs_info == NULL) {
796 printk(KERN_ERR 796 printk(KERN_ERR
797 "BeFS(%s): Unable to allocate memory for private " 797 "BeFS(%s): Unable to allocate memory for private "
@@ -799,7 +799,6 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
799 goto unacquire_none; 799 goto unacquire_none;
800 } 800 }
801 befs_sb = BEFS_SB(sb); 801 befs_sb = BEFS_SB(sb);
802 memset(befs_sb, 0, sizeof(befs_sb_info));
803 802
804 if (!parse_options((char *) data, &befs_sb->mount_opts)) { 803 if (!parse_options((char *) data, &befs_sb->mount_opts)) {
805 befs_error(sb, "cannot parse mount options"); 804 befs_error(sb, "cannot parse mount options");