diff options
| author | Min Shi <e13386@motorola.com> | 2016-12-02 16:25:47 -0600 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-18 16:54:30 +0100 |
| commit | 6e02bc5f60800d81fa5fa32b8a3ad826ca1f8d22 (patch) | |
| tree | a6bfc8bf475b47540ceeb073b33ef9b0497813db /fs | |
| parent | dc15803a5e00bf1fb1d74da69a7fb09f37c35101 (diff) | |
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: I3e1e92b168730a947d93f594d9555cfaceef2b6f
Signed-off-by: Min Shi <e13386@motorola.com>
Reviewed-on: https://gerrit.mot.com/927026
SLTApproved: Slta Waiver <sltawvr@motorola.com>
SME-Granted: SME Approvals Granted
Reviewed-by: Russell Knize <rknize@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/exfat/exfat_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/exfat_super.c b/fs/exfat/exfat_super.c index ab828c374..1ef0f105e 100644 --- a/fs/exfat/exfat_super.c +++ b/fs/exfat/exfat_super.c @@ -864,7 +864,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"); |
