summaryrefslogtreecommitdiff
path: root/fs/ext4/symlink.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-05-18 20:15:47 +0300
committerTheodore Ts'o <tytso@mit.edu>2015-05-18 20:15:47 +0300
commitd229959072eba40e1c2a4f53f8af17f1e770eb66 (patch)
tree1321587e2ae72863ac6f06d5ca7df6c809186937 /fs/ext4/symlink.c
parent5b643f9ce34df945e58c7176275d406aa0db704f (diff)
downloadlinux-d229959072eba40e1c2a4f53f8af17f1e770eb66.tar.xz
ext4 crypto: don't allocate a page when encrypting/decrypting file names
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/symlink.c')
-rw-r--r--fs/ext4/symlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/symlink.c b/fs/ext4/symlink.c
index 187b78920314..ca65d45c7f8d 100644
--- a/fs/ext4/symlink.c
+++ b/fs/ext4/symlink.c
@@ -74,6 +74,7 @@ static void *ext4_follow_link(struct dentry *dentry, struct nameidata *nd)
goto errout;
}
pstr.name = paddr;
+ pstr.len = plen;
res = _ext4_fname_disk_to_usr(ctx, NULL, &cstr, &pstr);
if (res < 0)
goto errout;