Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131031
b: refs/heads/master
c: fd9fc84
h: refs/heads/master
i:
  131029: 76695f9
  131027: 940a871
  131023: 4ab93a4
v: v3
  • Loading branch information
Tyler Hicks authored and Linus Torvalds committed Feb 7, 2009
1 parent c6da6c8 commit f41a39e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: eeb94855beeb7fde5f9e2ed72fe6a8b24cd5a3c7
refs/heads/master: fd9fc842bbab0cb5560b0d52ce4598c898707863
4 changes: 2 additions & 2 deletions trunk/fs/ecryptfs/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ static int ecryptfs_copy_filename(char **copied_name, size_t *copied_name_size,
{
int rc = 0;

(*copied_name) = kmalloc((name_size + 2), GFP_KERNEL);
(*copied_name) = kmalloc((name_size + 1), GFP_KERNEL);
if (!(*copied_name)) {
rc = -ENOMEM;
goto out;
Expand All @@ -1726,7 +1726,7 @@ static int ecryptfs_copy_filename(char **copied_name, size_t *copied_name_size,
* in printing out the
* string in debug
* messages */
(*copied_name_size) = (name_size + 1);
(*copied_name_size) = name_size;
out:
return rc;
}
Expand Down

0 comments on commit f41a39e

Please sign in to comment.