“74bc2ecfb5ca14d22eec1b6b8d476735067fa8db”上不存在“test/java/awt/Graphics2D/DrawString/DrawStringCrash.java”
提交 d6a49e8c 编写于 作者: P Paulo Alcantara 提交者: Steve French

cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()

Fix this by initializing rc to 0 as cache_refresh_path() would not set
it in case of success.
Reported-by: Nkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202301190004.bEHvbKG6-lkp@intel.com/Signed-off-by: NPaulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: NSteve French <stfrench@microsoft.com>
上级 3deddb77
...@@ -1047,10 +1047,10 @@ int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses, ...@@ -1047,10 +1047,10 @@ int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses,
const struct nls_table *cp, int remap, const char *path, const struct nls_table *cp, int remap, const char *path,
const struct dfs_cache_tgt_iterator *it) const struct dfs_cache_tgt_iterator *it)
{ {
int rc;
const char *npath;
struct cache_entry *ce;
struct cache_dfs_tgt *t; struct cache_dfs_tgt *t;
struct cache_entry *ce;
const char *npath;
int rc = 0;
npath = dfs_cache_canonical_path(path, cp, remap); npath = dfs_cache_canonical_path(path, cp, remap);
if (IS_ERR(npath)) if (IS_ERR(npath))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册