summaryrefslogtreecommitdiff
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-04-26 20:07:27 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2019-04-26 20:13:33 +0300
commit230c6402b1b305c21c91b56cd9de95a608898506 (patch)
tree3f57fb92ec24aa5a8a1f3b671bb9484e3b5957a4 /fs/overlayfs
parent1d8b29fdb7ef39bd76bcd7a7f516938163097b0e (diff)
downloadlinux-230c6402b1b305c21c91b56cd9de95a608898506.tar.xz
ovl_lookup_real_one(): don't bother with strlen()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/overlayfs')
-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;