]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdb4c4772c99b827a546f82a2339b3f31621c490
tree1c96cdca4eff00c1f3080174aadc51da102d70a5
parent48a88f538edf4cc785a776555397ac42d18f03d4
cifs: fix return of uninitialized rc in dfs_cache_update_tgthint()

[ Upstream commit 2fb916be5cb9c480aac09e3f9cc1d7aab192873d ]

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