Skip to content

Commit d159702

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb/client: add two elements to smb2_error_map_table array
Both status codes are mapped to -EIO. Now all status codes from common/smb2status.h are included in the smb2_error_map_table array(except for the first two zero definitions). Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 523ecd9 commit d159702

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fs/smb/client/smb2maperror.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ static const struct status_to_posix_error smb2_error_map_table[] = {
734734
{STATUS_FS_DRIVER_REQUIRED, -EOPNOTSUPP, "STATUS_FS_DRIVER_REQUIRED"},
735735
{STATUS_IMAGE_ALREADY_LOADED_AS_DLL, -EIO,
736736
"STATUS_IMAGE_ALREADY_LOADED_AS_DLL"},
737+
{STATUS_INVALID_LOCK_RANGE, -EIO, "STATUS_INVALID_LOCK_RANGE"},
737738
{STATUS_NETWORK_OPEN_RESTRICTION, -EIO,
738739
"STATUS_NETWORK_OPEN_RESTRICTION"},
739740
{STATUS_NO_USER_SESSION_KEY, -EIO, "STATUS_NO_USER_SESSION_KEY"},
@@ -2413,6 +2414,8 @@ static const struct status_to_posix_error smb2_error_map_table[] = {
24132414
{STATUS_IPSEC_INTEGRITY_CHECK_FAILED, -EIO,
24142415
"STATUS_IPSEC_INTEGRITY_CHECK_FAILED"},
24152416
{STATUS_IPSEC_CLEAR_TEXT_DROP, -EIO, "STATUS_IPSEC_CLEAR_TEXT_DROP"},
2417+
{STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP, -EIO,
2418+
"STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP"},
24162419
};
24172420

24182421
int

0 commit comments

Comments
 (0)