mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: sdcardfs: d_splice_alias can return error values
We must check that d_splice_alias was successful before using its output. Signed-off-by: Daniel Rosenberg <drosen@google.com> Bug: 62390017 Change-Id: Ifda0a052fb3f67e35c635a4e5e907876c5400978
This commit is contained in:
parent
36a6c648e2
commit
71efbfbf13
|
|
@ -199,7 +199,8 @@ static struct dentry *__sdcardfs_interpose(struct dentry *dentry,
|
|||
|
||||
ret_dentry = d_splice_alias(inode, dentry);
|
||||
dentry = ret_dentry ?: dentry;
|
||||
update_derived_permission_lock(dentry);
|
||||
if (!IS_ERR(dentry))
|
||||
update_derived_permission_lock(dentry);
|
||||
out:
|
||||
return ret_dentry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user