ANDROID: Incremental fs: Fix crash on failed lookup

Don't call dput on error code

Change-Id: Ie63645c9ed67fa231829917ae8ca154e049b4921
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Bug: 133435829
This commit is contained in:
Paul Lawrence
2020-02-05 08:50:12 -08:00
parent bc5e5bc1d0
commit 334164ca0f

View File

@@ -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;