diff options
Diffstat (limited to 'fs/ncpfs/inode.c')
-rw-r--r-- | fs/ncpfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 1ddf77b0b825..752f02e43ab0 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -411,11 +411,10 @@ static int ncp_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
411 | #endif | 411 | #endif |
412 | struct ncp_entry_info finfo; | 412 | struct ncp_entry_info finfo; |
413 | 413 | ||
414 | server = kmalloc(sizeof(struct ncp_server), GFP_KERNEL); | 414 | server = kzalloc(sizeof(struct ncp_server), GFP_KERNEL); |
415 | if (!server) | 415 | if (!server) |
416 | return -ENOMEM; | 416 | return -ENOMEM; |
417 | sb->s_fs_info = server; | 417 | sb->s_fs_info = server; |
418 | memset(server, 0, sizeof(struct ncp_server)); | ||
419 | 418 | ||
420 | error = -EFAULT; | 419 | error = -EFAULT; |
421 | if (raw_data == NULL) | 420 | if (raw_data == NULL) |