CIFS: Fix wrong length in cifs_iovec_read
Subsystems (2)
PATCH 1/1 CIFS: Fix wrong length in cifs_iovec_read
Signed-off-by Pavel Shilovsky <[email protected]>
--- fs/cifs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/file.c +1 -1
@@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov, io_parms.pid = pid; io_parms.tcon = pTcon; io_parms.offset = *poffset; - io_parms.length = len; + io_parms.length = cur_len; rc =CIFSSMBRead (xid, &io_parms, &bytes_read, &read_data, &buf_type); pSMBr = (struct smb_com_read_rsp *)read_data;
Signature · 1 line
1.7.1
A message that is not in the archive (sent off-list or not yet received): 1311171849-5550-1-git-send-email-piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Jeff Layton
Reviewed-byQuoted 10 lines · On Wed, 20 Jul 2011 18:24:09 +0400 Pavel Shilovsky…
Signed-off-by Pavel Shilovsky <[email protected]>--- fs/cifs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)fs/cifs/file.c +0
-0
fs/cifs/file.c cifs_iovec_read(struct file *file, const struct iovec *iov, · line 1743
Quoted 8 lines
fs/cifs/file.c +1
-1@@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov, io_parms.pid = pid; io_parms.tcon = pTcon; io_parms.offset = *poffset; - io_parms.length = len; + io_parms.length = cur_len; rc =CIFSSMBRead (xid, &io_parms, &bytes_read, &read_data, &buf_type); pSMBr = (struct smb_com_read_rsp *)read_data;
Looks correct...
Reviewed-by Jeff Layton <[email protected]>
merged
Quoted 26 lines · Pavel Shilovsky
Signed-off-by Pavel Shilovsky <[email protected]>---
fs/cifs/file.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)fs/cifs/file.c +1
-2@@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov, io_parms.pid = pid; io_parms.tcon = pTcon; io_parms.offset = *poffset; - io_parms.length = len; + io_parms.length = cur_len; rc = CIFSSMBRead(xid, &io_parms, &bytes_read, &read_data, &buf_type); pSMBr = (struct smb_com_read_rsp *)read_data; --1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
Thanks, Steve