aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index d5e0c4018f92..9e8e85a8d186 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -414,7 +414,7 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses,
414 spin_lock(&GlobalMid_Lock); 414 spin_lock(&GlobalMid_Lock);
415 if (midQ->resp_buf) { 415 if (midQ->resp_buf) {
416 spin_unlock(&GlobalMid_Lock); 416 spin_unlock(&GlobalMid_Lock);
417 receive_len = be32_to_cpu(*(__be32 *)midQ->resp_buf); 417 receive_len = midQ->resp_buf->smb_buf_length;
418 } else { 418 } else {
419 cERROR(1,("No response buffer")); 419 cERROR(1,("No response buffer"));
420 if(midQ->midState == MID_REQUEST_SUBMITTED) { 420 if(midQ->midState == MID_REQUEST_SUBMITTED) {
@@ -665,7 +665,7 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
665 spin_lock(&GlobalMid_Lock); 665 spin_lock(&GlobalMid_Lock);
666 if (midQ->resp_buf) { 666 if (midQ->resp_buf) {
667 spin_unlock(&GlobalMid_Lock); 667 spin_unlock(&GlobalMid_Lock);
668 receive_len = be32_to_cpu(*(__be32 *)midQ->resp_buf); 668 receive_len = midQ->resp_buf->smb_buf_length;
669 } else { 669 } else {
670 cERROR(1,("No response buffer")); 670 cERROR(1,("No response buffer"));
671 if(midQ->midState == MID_REQUEST_SUBMITTED) { 671 if(midQ->midState == MID_REQUEST_SUBMITTED) {