aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
authorEugene Korenevsky <ekorenevsky@astralinux.ru>2022-01-11 11:36:50 +0300
committerSteve French <stfrench@microsoft.com>2022-01-15 10:08:47 -0600
commit9bbf8662a27b56358366027d1a77c0676f85b222 (patch)
tree65dad82464ac30498023e1fe24fcbebac38cafbb /fs/cifs/cifspdu.h
parentcifs: move superblock magic defitions to magic.h (diff)
downloadlinux-dev-9bbf8662a27b56358366027d1a77c0676f85b222.tar.xz
linux-dev-9bbf8662a27b56358366027d1a77c0676f85b222.zip
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 <ekorenevsky@astralinux.ru> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index d2ff438fd31f..68b9a436af4b 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -2560,7 +2560,7 @@ typedef struct {
__le32 EaSize; /* length of the xattrs */
__u8 ShortNameLength;
__u8 Reserved;
- __u8 ShortName[12];
+ __u8 ShortName[24];
char FileName[1];
} __attribute__((packed)) FILE_BOTH_DIRECTORY_INFO; /* level 0x104 FFrsp data */