From: Al Viro Date: Sat, 9 May 2026 16:29:41 +0000 (-0400) Subject: simple_lookup(): use d_splice_alias() for ->lookup() return value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6247aad26d687d9b42a924fbed874a3e3e4d00d;p=thirdparty%2Fkernel%2Flinux.git simple_lookup(): use d_splice_alias() for ->lookup() return value Signed-off-by: Al Viro --- diff --git a/fs/libfs.c b/fs/libfs.c index 1bbea5e7bae37..d6205ea61afa6 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -78,8 +78,7 @@ struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned if (IS_ENABLED(CONFIG_UNICODE) && IS_CASEFOLDED(dir)) return NULL; - d_add(dentry, NULL); - return NULL; + return d_splice_alias(NULL, dentry); } EXPORT_SYMBOL(simple_lookup);