diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2011-07-20 10:24:09 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-07-20 20:48:05 -0400 |
commit | 2cebaa58b7de775386732bbd6cd11c3f5b73faf0 (patch) | |
tree | aaa392677870ded6c3790e1d327fa12f584e767f | |
parent | cf6ace16a3cd8b728fb0afa68368fd40bbeae19f (diff) |
CIFS: Fix wrong length in cifs_iovec_read
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index bb71471a4d9d..a9b4a24f2a16 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov, | |||
1737 | io_parms.pid = pid; | 1737 | io_parms.pid = pid; |
1738 | io_parms.tcon = pTcon; | 1738 | io_parms.tcon = pTcon; |
1739 | io_parms.offset = *poffset; | 1739 | io_parms.offset = *poffset; |
1740 | io_parms.length = len; | 1740 | io_parms.length = cur_len; |
1741 | rc = CIFSSMBRead(xid, &io_parms, &bytes_read, | 1741 | rc = CIFSSMBRead(xid, &io_parms, &bytes_read, |
1742 | &read_data, &buf_type); | 1742 | &read_data, &buf_type); |
1743 | pSMBr = (struct smb_com_read_rsp *)read_data; | 1743 | pSMBr = (struct smb_com_read_rsp *)read_data; |