Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201721
b: refs/heads/master
c: f55fdcc
h: refs/heads/master
i:
  201719: 1bd76c2
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Steve French committed Aug 2, 2010
1 parent 5715082 commit 33972ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ccd48025fe64cf01782ba3c7037654d25bd1950
refs/heads/master: f55fdcca6bf1c17e86a270a8c0d81c6677c61222
5 changes: 5 additions & 0 deletions trunk/fs/cifs/readdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,11 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir)
end_of_smb = cifsFile->srch_inf.ntwrk_buf_start + max_len;

tmp_buf = kmalloc(UNICODE_NAME_MAX, GFP_KERNEL);
if (tmp_buf == NULL) {
rc = -ENOMEM;
break;
}

for (i = 0; (i < num_to_fill) && (rc == 0); i++) {
if (current_entry == NULL) {
/* evaluate whether this case is an error */
Expand Down

0 comments on commit 33972ee

Please sign in to comment.