mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
fs/exfat: do error check for d_splice_alias return
This patch adds error check in case a defect exFAT SD cards is inserted. Change-Id: I37f6b8716abd556908aad72b18fcc7ac5719766e Signed-off-by: Min Shi <e13386@motorola.com> Signed-off-by: Shiyong Li <a22381@motorola.com> Reviewed-on: https://gerrit.mot.com/1102184 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Igor Kovalenko <igork@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
f961c72ccb
commit
9e75018bbf
1 changed files with 1 additions and 1 deletions
|
|
@ -873,7 +873,7 @@ out:
|
|||
}
|
||||
#else
|
||||
dentry = d_splice_alias(inode, dentry);
|
||||
if (dentry)
|
||||
if (dentry && !IS_ERR(dentry))
|
||||
dentry->d_time = dentry->d_parent->d_inode->i_version;
|
||||
#endif
|
||||
DPRINTK("exfat_lookup exited 2\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue