diff options
| -rw-r--r-- | fs/cifs/dir.c | 2 | ||||
| -rw-r--r-- | fs/cifs/smb2pdu.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 569d3fb736be..e702d48bd023 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
| @@ -205,7 +205,7 @@ check_name(struct dentry *direntry, struct cifs_tcon *tcon) | |||
| 205 | int i; | 205 | int i; |
| 206 | 206 | ||
| 207 | if (unlikely(direntry->d_name.len > | 207 | if (unlikely(direntry->d_name.len > |
| 208 | tcon->fsAttrInfo.MaxPathNameComponentLength)) | 208 | le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) |
| 209 | return -ENAMETOOLONG; | 209 | return -ENAMETOOLONG; |
| 210 | 210 | ||
| 211 | if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) { | 211 | if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) { |
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 18700fd25a0b..2826882c81d1 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
| @@ -84,8 +84,8 @@ | |||
| 84 | 84 | ||
| 85 | #define NUMBER_OF_SMB2_COMMANDS 0x0013 | 85 | #define NUMBER_OF_SMB2_COMMANDS 0x0013 |
| 86 | 86 | ||
| 87 | /* BB FIXME - analyze following length BB */ | 87 | /* 4 len + 52 transform hdr + 64 hdr + 56 create rsp */ |
| 88 | #define MAX_SMB2_HDR_SIZE 0x78 /* 4 len + 64 hdr + (2*24 wct) + 2 bct + 2 pad */ | 88 | #define MAX_SMB2_HDR_SIZE 0x00b0 |
| 89 | 89 | ||
| 90 | #define SMB2_PROTO_NUMBER cpu_to_le32(0x424d53fe) | 90 | #define SMB2_PROTO_NUMBER cpu_to_le32(0x424d53fe) |
| 91 | #define SMB2_TRANSFORM_PROTO_NUM cpu_to_le32(0x424d53fd) | 91 | #define SMB2_TRANSFORM_PROTO_NUM cpu_to_le32(0x424d53fd) |
