Skip to content

Commit a26bc1a

Browse files
salah-trikiluisbg
authored andcommitted
fs: befs: Insert NULL inode to dentry
As VFS expects, lookup inserts NULL inode to dentry when the named inode does not exist. Signed-off-by: Salah Triki <salah.triki@gmail.com> Acked-by: Luis de Bethencourt <luisbg@osg.samsung.com>
1 parent d70ee4f commit a26bc1a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/befs/linuxvfs.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
184184

185185
if (ret == BEFS_BT_NOT_FOUND) {
186186
befs_debug(sb, "<--- %s %pd not found", __func__, dentry);
187+
d_add(dentry, NULL);
187188
return ERR_PTR(-ENOENT);
188189

189190
} else if (ret != BEFS_OK || offset == 0) {

0 commit comments

Comments
 (0)