summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-01-17 10:21:56 +0800
committerSteve French <stfrench@microsoft.com>2020-01-26 19:24:16 -0600
commiteecfc57130b5faa11fa5fe556313254c7ecfabed (patch)
treeac554417a9f980972a00d07a073e4185274f8062 /fs
parent742d8de0186e9f8ec469f8171ea25781a17421bf (diff)
downloadlinux-stable-eecfc57130b5faa11fa5fe556313254c7ecfabed.tar.gz
linux-stable-eecfc57130b5faa11fa5fe556313254c7ecfabed.tar.bz2
linux-stable-eecfc57130b5faa11fa5fe556313254c7ecfabed.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/dfs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
index 76ffe12d64f5..2bbfe283fb52 100644
--- a/fs/cifs/dfs_cache.c
+++ b/fs/cifs/dfs_cache.c
@@ -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,