diff options
author | Steve French <sfrench@us.ibm.com> | 2006-08-15 17:35:48 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-08-15 17:35:48 +0400 |
commit | 5ddaa683a513439081c9511b0d9ad490672c51c9 (patch) | |
tree | 7c90bbc458cc2c05331a8bcb142e2eb41469056f /fs/cifs/readdir.c | |
parent | e466e4876bf39474e15d0572f2204578137ae7f5 (diff) | |
download | linux-5ddaa683a513439081c9511b0d9ad490672c51c9.tar.xz |
[CIFS] endian errors in lanman protocol support
le16 compared to host-endian constant
u8 fed to le32_to_cpu()
le16 compared to host-endian constant
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 03bbcb377913..105761e3ba0e 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c @@ -556,7 +556,7 @@ static int cifs_entry_is_dot(char *current_entry, struct cifsFileInfo *cfile) FIND_FILE_STANDARD_INFO * pFindData = (FIND_FILE_STANDARD_INFO *)current_entry; filename = &pFindData->FileName[0]; - len = le32_to_cpu(pFindData->FileNameLength); + len = pFindData->FileNameLength; } else { cFYI(1,("Unknown findfirst level %d",cfile->srch_inf.info_level)); } |