cifs: handle reconnect of tcon when there is no cached dfs referral
authorPaulo Alcantara <pc@cjr.nz>
Mon, 12 Jul 2021 15:38:24 +0000 (12:38 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:35 +0000 (16:05 +0200)
commit72797ffca1bdc5a21eb829c690623bf5e1199bc4
treedd4aaa076a40bc451b1717ed3f3acfcde0cce758
parentb93f9499427cf15ee39877c43052ed26527e59ff
cifs: handle reconnect of tcon when there is no cached dfs referral

commit 507345b5ae6a57b7ecd7550ff39282ed20de7b8d upstream.

When there is no cached DFS referral of tcon->dfs_path, then reconnect
to same share.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c