diff options
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r-- | fs/hpfs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 8fe51c343786..b76d60832375 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -462,11 +462,10 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
462 | 462 | ||
463 | int o; | 463 | int o; |
464 | 464 | ||
465 | sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); | 465 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
466 | if (!sbi) | 466 | if (!sbi) |
467 | return -ENOMEM; | 467 | return -ENOMEM; |
468 | s->s_fs_info = sbi; | 468 | s->s_fs_info = sbi; |
469 | memset(sbi, 0, sizeof(*sbi)); | ||
470 | 469 | ||
471 | sbi->sb_bmp_dir = NULL; | 470 | sbi->sb_bmp_dir = NULL; |
472 | sbi->sb_cp_table = NULL; | 471 | sbi->sb_cp_table = NULL; |