Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'cifs-fixes-for-4.13-rc7-and-stable' of git://git.samba.org/sfrench/cifs-2.6

Pull cifs fixes from Steve French:
"Two cifs bug fixes for stable"

* tag 'cifs-fixes-for-4.13-rc7-and-stable' of git://git.samba.org/sfrench/cifs-2.6:
CIFS: remove endian related sparse warning
CIFS: Fix maximum SMB2 header size

+3 -3
+1 -1
fs/cifs/dir.c
··· 205 205 int i; 206 206 207 207 if (unlikely(direntry->d_name.len > 208 - tcon->fsAttrInfo.MaxPathNameComponentLength)) 208 + le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) 209 209 return -ENAMETOOLONG; 210 210 211 211 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) {
+2 -2
fs/cifs/smb2pdu.h
··· 84 84 85 85 #define NUMBER_OF_SMB2_COMMANDS 0x0013 86 86 87 - /* BB FIXME - analyze following length BB */ 88 - #define MAX_SMB2_HDR_SIZE 0x78 /* 4 len + 64 hdr + (2*24 wct) + 2 bct + 2 pad */ 87 + /* 4 len + 52 transform hdr + 64 hdr + 56 create rsp */ 88 + #define MAX_SMB2_HDR_SIZE 0x00b0 89 89 90 90 #define SMB2_PROTO_NUMBER cpu_to_le32(0x424d53fe) 91 91 #define SMB2_TRANSFORM_PROTO_NUM cpu_to_le32(0x424d53fd)