Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106264
b: refs/heads/master
c: 5ca33c6
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Steve French committed Jul 24, 2008
1 parent 90bf413 commit d7c4c2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8efdbde647f542ce0d303273df7ad4157caa03d0
refs/heads/master: 5ca33c6ac30596fc1403a092f46ea48c406734e4
5 changes: 4 additions & 1 deletion trunk/fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3914,7 +3914,10 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
bool is_unicode;
struct dfs_referral_level_3 *ref;

is_unicode = pSMBr->hdr.Flags2 & SMBFLG2_UNICODE;
if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE)
is_unicode = true;
else
is_unicode = false;
*num_of_nodes = le16_to_cpu(pSMBr->NumberOfReferrals);

if (*num_of_nodes < 1) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
/* Note that FC 1001 length is big endian on the wire,
but we convert it here so it is always manipulated
as host byte order */
pdu_length = ntohl(smb_buffer->smb_buf_length);
pdu_length = be32_to_cpu((__force __be32)smb_buffer->smb_buf_length);
smb_buffer->smb_buf_length = pdu_length;

cFYI(1, ("rfc1002 length 0x%x", pdu_length+4));
Expand Down

0 comments on commit d7c4c2d

Please sign in to comment.