cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()
authorPaulo Alcantara <pc@cjr.nz>
Wed, 18 Jan 2023 16:36:31 +0000 (13:36 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 07:06:33 +0000 (08:06 +0100)
commit38044859deee1e00fcabf468a7f8442d276d855b
tree1c96cdca4eff00c1f3080174aadc51da102d70a5
parent1dba6881e332c4e40ee57dd4275e4105a1d231f0
cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()

[ Upstream commit d6a49e8c4ca4d399ed65ac219585187fc8c2e2b1 ]

Fix this by initializing rc to 0 as cache_refresh_path() would not set
it in case of success.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202301190004.bEHvbKG6-lkp@intel.com/
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/dfs_cache.c