mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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 (cherry picked from commit 334164ca0f18ea89a922b90020f5e3840a928503)
This commit is contained in:
parent
e8910f2df6
commit
c58df626a9
|
|
@ -1482,6 +1482,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user