diff options
Diffstat (limited to 'fs/adfs/super.c')
| -rw-r--r-- | fs/adfs/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c index ba1c88af49fe..9ade139086fc 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c | |||
| @@ -251,8 +251,7 @@ static int init_inodecache(void) | |||
| 251 | 251 | ||
| 252 | static void destroy_inodecache(void) | 252 | static void destroy_inodecache(void) |
| 253 | { | 253 | { |
| 254 | if (kmem_cache_destroy(adfs_inode_cachep)) | 254 | kmem_cache_destroy(adfs_inode_cachep); |
| 255 | printk(KERN_INFO "adfs_inode_cache: not all structures were freed\n"); | ||
| 256 | } | 255 | } |
| 257 | 256 | ||
| 258 | static struct super_operations adfs_sops = { | 257 | static struct super_operations adfs_sops = { |
| @@ -308,7 +307,7 @@ static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_di | |||
| 308 | if (adfs_checkmap(sb, dm)) | 307 | if (adfs_checkmap(sb, dm)) |
| 309 | return dm; | 308 | return dm; |
| 310 | 309 | ||
| 311 | adfs_error(sb, NULL, "map corrupted"); | 310 | adfs_error(sb, "map corrupted"); |
| 312 | 311 | ||
| 313 | error_free: | 312 | error_free: |
| 314 | while (--zone >= 0) | 313 | while (--zone >= 0) |
| @@ -339,11 +338,10 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent) | |||
| 339 | 338 | ||
| 340 | sb->s_flags |= MS_NODIRATIME; | 339 | sb->s_flags |= MS_NODIRATIME; |
| 341 | 340 | ||
| 342 | asb = kmalloc(sizeof(*asb), GFP_KERNEL); | 341 | asb = kzalloc(sizeof(*asb), GFP_KERNEL); |
| 343 | if (!asb) | 342 | if (!asb) |
| 344 | return -ENOMEM; | 343 | return -ENOMEM; |
| 345 | sb->s_fs_info = asb; | 344 | sb->s_fs_info = asb; |
| 346 | memset(asb, 0, sizeof(*asb)); | ||
| 347 | 345 | ||
| 348 | /* set default options */ | 346 | /* set default options */ |
| 349 | asb->s_uid = 0; | 347 | asb->s_uid = 0; |
