aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index fed55e3c53df..77e1fc01d747 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -255,12 +255,10 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
255 CIFSSMBClose(xid, pTcon, fileHandle); 255 CIFSSMBClose(xid, pTcon, fileHandle);
256 } else if(newinode) { 256 } else if(newinode) {
257 pCifsFile = 257 pCifsFile =
258 kmalloc(sizeof (struct cifsFileInfo), GFP_KERNEL); 258 kzalloc(sizeof (struct cifsFileInfo), GFP_KERNEL);
259 259
260 if(pCifsFile == NULL) 260 if(pCifsFile == NULL)
261 goto cifs_create_out; 261 goto cifs_create_out;
262 memset((char *)pCifsFile, 0,
263 sizeof (struct cifsFileInfo));
264 pCifsFile->netfid = fileHandle; 262 pCifsFile->netfid = fileHandle;
265 pCifsFile->pid = current->tgid; 263 pCifsFile->pid = current->tgid;
266 pCifsFile->pInode = newinode; 264 pCifsFile->pInode = newinode;