diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 83df937b814e..8791c74575d9 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -725,6 +725,7 @@ CIFSSMBEcho(struct TCP_Server_Info *server) | |||
725 | { | 725 | { |
726 | ECHO_REQ *smb; | 726 | ECHO_REQ *smb; |
727 | int rc = 0; | 727 | int rc = 0; |
728 | struct kvec iov; | ||
728 | 729 | ||
729 | cFYI(1, "In echo request"); | 730 | cFYI(1, "In echo request"); |
730 | 731 | ||
@@ -739,9 +740,10 @@ CIFSSMBEcho(struct TCP_Server_Info *server) | |||
739 | put_bcc(1, &smb->hdr); | 740 | put_bcc(1, &smb->hdr); |
740 | smb->Data[0] = 'a'; | 741 | smb->Data[0] = 'a'; |
741 | inc_rfc1001_len(smb, 3); | 742 | inc_rfc1001_len(smb, 3); |
743 | iov.iov_base = smb; | ||
744 | iov.iov_len = be32_to_cpu(smb->hdr.smb_buf_length) + 4; | ||
742 | 745 | ||
743 | rc = cifs_call_async(server, (struct smb_hdr *)smb, | 746 | rc = cifs_call_async(server, &iov, 1, cifs_echo_callback, server); |
744 | cifs_echo_callback, server); | ||
745 | if (rc) | 747 | if (rc) |
746 | cFYI(1, "Echo request failed: %d", rc); | 748 | cFYI(1, "Echo request failed: %d", rc); |
747 | 749 | ||