aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-09-22 19:32:06 -0400
committerSteve French <sfrench@us.ibm.com>2005-09-22 19:32:06 -0400
commit70ca734a14366b634224a1e4586d43b36b65ab67 (patch)
treebad9c511f846baebc18d0f5190bbe5fde5ae0dd1 /fs/cifs/transport.c
parent2096243885ee34b78cb57ce835e07c8536a67d2a (diff)
[CIFS] Various minor bigendian fixes and sparse level 2 warning message fixes
Most important of these fixes mapchars on bigendian and a few statfs fields Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
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) {