From 7356f0f9d02ea8c8974170edb6725a25464db861 Mon Sep 17 00:00:00 2001 From: liuzerun Date: Fri, 30 Aug 2024 09:51:23 +0000 Subject: [PATCH] painc Signed-off-by: liuzerun --- fs/hmdfs/inode_cloud.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/hmdfs/inode_cloud.c b/fs/hmdfs/inode_cloud.c index 4fde1d5880b5..29a921a74d62 100644 --- a/fs/hmdfs/inode_cloud.c +++ b/fs/hmdfs/inode_cloud.c @@ -33,13 +33,16 @@ struct hmdfs_lookup_cloud_ret *lookup_cloud_dentry(struct dentry *child_dentry, const struct qstr *qstr, uint64_t dev_id) { + int err; struct hmdfs_lookup_cloud_ret *lookup_ret; struct hmdfs_dentry_cloud *dentry = NULL; struct clearcache_item *cache_item = NULL; struct hmdfs_dcache_lookup_ctx_cloud ctx; struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); - get_cloud_cache_file(child_dentry->d_parent, sbi); + err = get_cloud_cache_file(child_dentry->d_parent, sbi); + if (unlikely(err != 0)) + return NULL; cache_item = hmdfs_find_cache_item(dev_id, child_dentry->d_parent); if (!cache_item) return NULL; -- Gitee