]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Add helper function to check smb1+ server
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Tue, 23 Aug 2022 12:52:02 +0000 (20:52 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 25 Aug 2022 03:30:09 +0000 (22:30 -0500)
commitfdba41f678c846792a3fa4f108860000fcfac532
tree12bac3fe7ea04b16c037e77d1b003c2922162fea
parent52aaf9c284559a91f107af66d5a71bf75cdbdb76
cifs: Add helper function to check smb1+ server

SMB1 server's header_preamble_size is not 0, add use is_smb1 function
to simplify the code, no actual functional changes.

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/transport.c