Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53960
b: refs/heads/master
c: eaa33a9
h: refs/heads/master
v: v3
  • Loading branch information
vignesh authored and Steve French committed Apr 25, 2007
1 parent 0123334 commit 7842eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5858ae44e289ac6c809af3fe81b9a6ed41914d41
refs/heads/master: eaa33a9ac04cf5760cf4e661241db19f4151cf06
7 changes: 2 additions & 5 deletions trunk/fs/cifs/readdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,11 @@ static int initiate_cifs_search(const int xid, struct file *file)

if(file->private_data == NULL) {
file->private_data =
kmalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
kzalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
}

if(file->private_data == NULL) {
if(file->private_data == NULL)
return -ENOMEM;
} else {
memset(file->private_data,0,sizeof(struct cifsFileInfo));
}
cifsFile = file->private_data;
cifsFile->invalidHandle = TRUE;
cifsFile->srch_inf.endOfSearch = FALSE;
Expand Down

0 comments on commit 7842eed

Please sign in to comment.