]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit329d901fa8099f5405db0d5f5338a8a8fe773ebb
treefe00d92dac0b5e746b2a555f0590ba65aec21c0c
parent307d1b3e26310db573de01ed3dc4a02b4fb13ada
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