diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-12-29 00:30:37 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-12-29 00:30:37 +0100 |
commit | e5399ab2c14963457db221f5a59d12a98f998792 (patch) | |
tree | f78b90b55fc59fcbfab55fbe8dd288a49d46b97c /fs/afs/dynroot.c | |
parent | 534ad35798aff40a93acac4c6d204ff8867701aa (diff) | |
parent | 46cf053efec6a3a5f343fead837777efe8252a46 (diff) | |
download | linux-e5399ab2c14963457db221f5a59d12a98f998792.tar.bz2 |
Merge tag 'v5.5-rc3' into devel
Linux 5.5-rc3
Diffstat (limited to 'fs/afs/dynroot.c')
-rw-r--r-- | fs/afs/dynroot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c index 4150280509ff..7503899c0a1b 100644 --- a/fs/afs/dynroot.c +++ b/fs/afs/dynroot.c @@ -136,6 +136,9 @@ static struct dentry *afs_dynroot_lookup(struct inode *dir, struct dentry *dentr ASSERTCMP(d_inode(dentry), ==, NULL); + if (flags & LOOKUP_CREATE) + return ERR_PTR(-EOPNOTSUPP); + if (dentry->d_name.len >= AFSNAMEMAX) { _leave(" = -ENAMETOOLONG"); return ERR_PTR(-ENAMETOOLONG); |