diff options
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 533f863067e5..907531ac5888 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
@@ -462,7 +462,7 @@ checkSMB(struct smb_hdr *smb, __u16 mid, unsigned int length) | |||
462 | 462 | ||
463 | if (check_smb_hdr(smb, mid)) | 463 | if (check_smb_hdr(smb, mid)) |
464 | return 1; | 464 | return 1; |
465 | clc_len = smbCalcSize_LE(smb); | 465 | clc_len = smbCalcSize(smb); |
466 | 466 | ||
467 | if (4 + len != length) { | 467 | if (4 + len != length) { |
468 | cERROR(1, "Length read does not match RFC1001 length %d", | 468 | cERROR(1, "Length read does not match RFC1001 length %d", |
@@ -519,7 +519,7 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv) | |||
519 | (struct smb_com_transaction_change_notify_rsp *)buf; | 519 | (struct smb_com_transaction_change_notify_rsp *)buf; |
520 | struct file_notify_information *pnotify; | 520 | struct file_notify_information *pnotify; |
521 | __u32 data_offset = 0; | 521 | __u32 data_offset = 0; |
522 | if (get_bcc_le(buf) > sizeof(struct file_notify_information)) { | 522 | if (get_bcc(buf) > sizeof(struct file_notify_information)) { |
523 | data_offset = le32_to_cpu(pSMBr->DataOffset); | 523 | data_offset = le32_to_cpu(pSMBr->DataOffset); |
524 | 524 | ||
525 | pnotify = (struct file_notify_information *) | 525 | pnotify = (struct file_notify_information *) |