summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/export.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-04-26 19:07:27 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2019-04-26 19:13:33 +0200
commit230c6402b1b305c21c91b56cd9de95a608898506 (patch)
tree3f57fb92ec24aa5a8a1f3b671bb9484e3b5957a4 /fs/overlayfs/export.c
parentsysv: bury the broken "quietly truncate the long filenames" logics (diff)
downloadlinux-230c6402b1b305c21c91b56cd9de95a608898506.tar.xz
linux-230c6402b1b305c21c91b56cd9de95a608898506.zip
ovl_lookup_real_one(): don't bother with strlen()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/overlayfs/export.c')
-rw-r--r--fs/overlayfs/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/export.c b/fs/overlayfs/export.c
index 54e5d17d7f3e..cc1c9e5606ba 100644
--- a/fs/overlayfs/export.c
+++ b/fs/overlayfs/export.c
@@ -398,7 +398,7 @@ static struct dentry *ovl_lookup_real_one(struct dentry *connected,
* pointer because we hold no lock on the real dentry.
*/
take_dentry_name_snapshot(&name, real);
- this = lookup_one_len(name.name, connected, strlen(name.name));
+ this = lookup_one_len(name.name.name, connected, name.name.len);
err = PTR_ERR(this);
if (IS_ERR(this)) {
goto fail;