Skip to content

Commit

Permalink
cifs: Fix return value in __update_cache_entry
Browse files Browse the repository at this point in the history
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 <yuehaibing@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
YueHaibing authored and Steve French committed Jan 27, 2020
1 parent 742d8de commit eecfc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/dfs_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ static int __update_cache_entry(const char *path,

kfree(th);

return 0;
return rc;
}

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

0 comments on commit eecfc57

Please sign in to comment.