Commit eecfc571 authored by YueHaibing's avatar YueHaibing Committed by Steve French

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 742d8de0
...@@ -592,7 +592,7 @@ static int __update_cache_entry(const char *path, ...@@ -592,7 +592,7 @@ static int __update_cache_entry(const char *path,
kfree(th); kfree(th);
return 0; return rc;
} }
static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses, static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment