aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs/super.c')
-rw-r--r--fs/hpfs/super.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c
index 8fe51c343786..450b5e0b4785 100644
--- a/fs/hpfs/super.c
+++ b/fs/hpfs/super.c
@@ -203,8 +203,7 @@ static int init_inodecache(void)
203 203
204static void destroy_inodecache(void) 204static void destroy_inodecache(void)
205{ 205{
206 if (kmem_cache_destroy(hpfs_inode_cachep)) 206 kmem_cache_destroy(hpfs_inode_cachep);
207 printk(KERN_INFO "hpfs_inode_cache: not all structures were freed\n");
208} 207}
209 208
210/* 209/*
@@ -462,11 +461,10 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent)
462 461
463 int o; 462 int o;
464 463
465 sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); 464 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
466 if (!sbi) 465 if (!sbi)
467 return -ENOMEM; 466 return -ENOMEM;
468 s->s_fs_info = sbi; 467 s->s_fs_info = sbi;
469 memset(sbi, 0, sizeof(*sbi));
470 468
471 sbi->sb_bmp_dir = NULL; 469 sbi->sb_bmp_dir = NULL;
472 sbi->sb_cp_table = NULL; 470 sbi->sb_cp_table = NULL;