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

Commit 334164ca authored by Paul Lawrence's avatar Paul Lawrence
Browse files

ANDROID: Incremental fs: Fix crash on failed lookup



Don't call dput on error code

Change-Id: Ie63645c9ed67fa231829917ae8ca154e049b4921
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
Bug: 133435829
parent bc5e5bc1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1484,6 +1484,7 @@ static struct dentry *dir_lookup(struct inode *dir_inode, struct dentry *dentry,
		err = IS_ERR(backing_dentry)
			? PTR_ERR(backing_dentry)
			: -EFAULT;
		backing_dentry = NULL;
		goto out;
	} else {
		struct inode *inode = NULL;