cifs: fix check of tcon dfs in smb1
authorPaulo Alcantara <pc@cjr.nz>
Thu, 27 Aug 2020 14:20:19 +0000 (11:20 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 28 Aug 2020 17:27:33 +0000 (12:27 -0500)
commite183785f2529b4135f00a0330a3b08e7c86530c8
treefe00d92dac0b5e746b2a555f0590ba65aec21c0c
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
cifs: fix check of tcon dfs in smb1

For SMB1, the DFS flag should be checked against tcon->Flags rather
than tcon->share_flags.  While at it, add an is_tcon_dfs() helper to
check for DFS capability in a more generic way.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c