]> 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)
commitf33117b85b339062b3b94d871480766843f9e806
treefe00d92dac0b5e746b2a555f0590ba65aec21c0c
parent066a8aace0c5f86a6f60488ff677bb53935358db
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