Skip to content

Commit eecfc57

Browse files
YueHaibingsmfrench
authored andcommitted
cifs: Fix return value in __update_cache_entry
copy_ref_data() may return error, it should be returned to upstream caller. Fixes: 03535b72873b ("cifs: Avoid doing network I/O while holding cache lock") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 742d8de commit eecfc57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/cifs/dfs_cache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ static int __update_cache_entry(const char *path,
592592

593593
kfree(th);
594594

595-
return 0;
595+
return rc;
596596
}
597597

598598
static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses,

0 commit comments

Comments
 (0)