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: 03535b7 ("cifs: Avoid doing network I/O while holding cache lock") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 742d8de commit eecfc57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)