summaryrefslogtreecommitdiff
path: root/fs/fs_parser.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-09-12 20:43:51 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-12 20:43:51 +0300
commitfdfc346302a7b63e3d5b9168be74bb12b1975999 (patch)
tree4c31a7d643c04aba5e2099b6968bd147709a36c5 /fs/fs_parser.c
parent8d4a0b5d0813c990637fa9f3c9bea5dab1fedb8f (diff)
parentea47ab111669b187808b3080602788dec26cb9bc (diff)
downloadlinux-fdfc346302a7b63e3d5b9168be74bb12b1975999.tar.xz
Merge branch 'misc.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull namei updates from Al Viro: "Clearing fallout from mkdirat in io_uring series. The fix in the kern_path_locked() patch plus associated cleanups" * 'misc.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: putname(): IS_ERR_OR_NULL() is wrong here namei: Standardize callers of filename_create() namei: Standardize callers of filename_lookup() rename __filename_parentat() to filename_parentat() namei: Fix use after free in kern_path_locked
Diffstat (limited to 'fs/fs_parser.c')
-rw-r--r--fs/fs_parser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fs_parser.c b/fs/fs_parser.c
index 980d44fd3a36..3df07c0e32b3 100644
--- a/fs/fs_parser.c
+++ b/fs/fs_parser.c
@@ -165,7 +165,6 @@ int fs_lookup_param(struct fs_context *fc,
return invalf(fc, "%s: not usable as path", param->key);
}
- f->refcnt++; /* filename_lookup() drops our ref. */
ret = filename_lookup(param->dirfd, f, flags, _path, NULL);
if (ret < 0) {
errorf(fc, "%s: Lookup failure for '%s'", param->key, f->name);