diff options
Diffstat (limited to 'fs/hpfs/super.c')
| -rw-r--r-- | fs/hpfs/super.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index f798480a363f..450b5e0b4785 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include <linux/parser.h> | 11 | #include <linux/parser.h> |
| 12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
| 13 | #include <linux/statfs.h> | 13 | #include <linux/statfs.h> |
| 14 | #include <linux/magic.h> | ||
| 14 | 15 | ||
| 15 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ | 16 | /* Mark the filesystem dirty, so that chkdsk checks it when os/2 booted */ |
| 16 | 17 | ||
| @@ -202,8 +203,7 @@ static int init_inodecache(void) | |||
| 202 | 203 | ||
| 203 | static void destroy_inodecache(void) | 204 | static void destroy_inodecache(void) |
| 204 | { | 205 | { |
| 205 | if (kmem_cache_destroy(hpfs_inode_cachep)) | 206 | kmem_cache_destroy(hpfs_inode_cachep); |
| 206 | printk(KERN_INFO "hpfs_inode_cache: not all structures were freed\n"); | ||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | /* | 209 | /* |
| @@ -461,11 +461,10 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
| 461 | 461 | ||
| 462 | int o; | 462 | int o; |
| 463 | 463 | ||
| 464 | sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); | 464 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
| 465 | if (!sbi) | 465 | if (!sbi) |
| 466 | return -ENOMEM; | 466 | return -ENOMEM; |
| 467 | s->s_fs_info = sbi; | 467 | s->s_fs_info = sbi; |
| 468 | memset(sbi, 0, sizeof(*sbi)); | ||
| 469 | 468 | ||
| 470 | sbi->sb_bmp_dir = NULL; | 469 | sbi->sb_bmp_dir = NULL; |
| 471 | sbi->sb_cp_table = NULL; | 470 | sbi->sb_cp_table = NULL; |
