Skip to content

Commit 9bbf866

Browse files
Eugene Korenevskysmfrench
authored andcommitted
cifs: fix FILE_BOTH_DIRECTORY_INFO definition
The size of FILE_BOTH_DIRECTORY_INFO.ShortName must be 24 bytes, not 12 (see MS-FSCC documentation). Signed-off-by: Eugene Korenevsky <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent dea2903 commit 9bbf866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/cifspdu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2560,7 +2560,7 @@ typedef struct {
25602560
__le32 EaSize; /* length of the xattrs */
25612561
__u8 ShortNameLength;
25622562
__u8 Reserved;
2563-
__u8 ShortName[12];
2563+
__u8 ShortName[24];
25642564
char FileName[1];
25652565
} __attribute__((packed)) FILE_BOTH_DIRECTORY_INFO; /* level 0x104 FFrsp data */
25662566

0 commit comments

Comments
 (0)