Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a26bc1ad authored by Salah Triki's avatar Salah Triki Committed by Luis de Bethencourt
Browse files

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: default avatarSalah Triki <salah.triki@gmail.com>
Acked-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
parent d70ee4f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)

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

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