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 06:59:00 +0000 (07:59 +0100)
commit4cd1e18bc04a335f87be8714722bcfb983410a12
treee8c061f587917098c4533b9f65263ffa8d6d448a
parent43acd767bd90c5d4172ce7fee5d9007a9a08dea9
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