diff options
Diffstat (limited to 'fs/ncpfs/inode.c')
-rw-r--r-- | fs/ncpfs/inode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 1ddf77b0b825..42e3bef270c9 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -81,8 +81,7 @@ static int init_inodecache(void) | |||
81 | 81 | ||
82 | static void destroy_inodecache(void) | 82 | static void destroy_inodecache(void) |
83 | { | 83 | { |
84 | if (kmem_cache_destroy(ncp_inode_cachep)) | 84 | kmem_cache_destroy(ncp_inode_cachep); |
85 | printk(KERN_INFO "ncp_inode_cache: not all structures were freed\n"); | ||
86 | } | 85 | } |
87 | 86 | ||
88 | static int ncp_remount(struct super_block *sb, int *flags, char* data) | 87 | static int ncp_remount(struct super_block *sb, int *flags, char* data) |
@@ -224,7 +223,6 @@ static void ncp_set_attr(struct inode *inode, struct ncp_entry_info *nwinfo) | |||
224 | inode->i_nlink = 1; | 223 | inode->i_nlink = 1; |
225 | inode->i_uid = server->m.uid; | 224 | inode->i_uid = server->m.uid; |
226 | inode->i_gid = server->m.gid; | 225 | inode->i_gid = server->m.gid; |
227 | inode->i_blksize = NCP_BLOCK_SIZE; | ||
228 | 226 | ||
229 | ncp_update_dates(inode, &nwinfo->i); | 227 | ncp_update_dates(inode, &nwinfo->i); |
230 | ncp_update_inode(inode, nwinfo); | 228 | ncp_update_inode(inode, nwinfo); |
@@ -411,11 +409,10 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
411 | #endif | 409 | #endif |
412 | struct ncp_entry_info finfo; | 410 | struct ncp_entry_info finfo; |
413 | 411 | ||
414 | server = kmalloc(sizeof(struct ncp_server), GFP_KERNEL); | 412 | server = kzalloc(sizeof(struct ncp_server), GFP_KERNEL); |
415 | if (!server) | 413 | if (!server) |
416 | return -ENOMEM; | 414 | return -ENOMEM; |
417 | sb->s_fs_info = server; | 415 | sb->s_fs_info = server; |
418 | memset(server, 0, sizeof(struct ncp_server)); | ||
419 | 416 | ||
420 | error = -EFAULT; | 417 | error = -EFAULT; |
421 | if (raw_data == NULL) | 418 | if (raw_data == NULL) |