]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: handle empty list of targets in cifs_reconnect()
authorPaulo Alcantara <pc@cjr.nz>
Tue, 21 Jul 2020 12:36:41 +0000 (09:36 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 2 Aug 2020 23:00:26 +0000 (18:00 -0500)
commitc1ff24188b753f0761b501f2faf9008ff2efa021
treef91c99d9e72ceaf3f1e4f0b8c8613d570d112bf3
parent441ad6ebe990621dd8923917b1e47f8c9c562166
cifs: handle empty list of targets in cifs_reconnect()

In case there were no cached DFS referrals in
reconn_setup_dfs_targets(), set cifs_sb to NULL prior to calling
reconn_set_next_dfs_target() so it would not try to access an empty
tgt_list.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c