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)
committerSteve French <stfrench@microsoft.com>
Wed, 18 Jan 2023 17:24:20 +0000 (11:24 -0600)
commitd6a49e8c4ca4d399ed65ac219585187fc8c2e2b1
treedda905e6d06dbb94c2435be499019cd03f1fb20b
parent3deddb77fdd932df92f3b6a27a9cffed82c4fe1a
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: 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>
fs/cifs/dfs_cache.c