|
@@ -1549,13 +1549,12 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
|
|
|
struct reiserfs_sb_info *sbi;
|
|
|
int errval = -EINVAL;
|
|
|
|
|
|
- sbi = kmalloc(sizeof(struct reiserfs_sb_info), GFP_KERNEL);
|
|
|
+ sbi = kzalloc(sizeof(struct reiserfs_sb_info), GFP_KERNEL);
|
|
|
if (!sbi) {
|
|
|
errval = -ENOMEM;
|
|
|
goto error;
|
|
|
}
|
|
|
s->s_fs_info = sbi;
|
|
|
- memset(sbi, 0, sizeof(struct reiserfs_sb_info));
|
|
|
/* Set default values for options: non-aggressive tails, RO on errors */
|
|
|
REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_SMALLTAIL);
|
|
|
REISERFS_SB(s)->s_mount_opt |= (1 << REISERFS_ERROR_RO);
|