Skip to contentSkip to conversation

CIFS: Fix wrong length in cifs_iovec_read

PATCH In review Pavel Shilovsky 3 participants 3 messages Jul 20, 2011 – Jul 21, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIFS: Fix wrong length in cifs_iovec_read

---
 fs/cifs/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/file.c +1 -1
index bb71471..a9b4a24 100644
@@ -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

Reviewed-by
#2 lore raw
Quoted 10 lines · On Wed, 20 Jul 2011 18:24:09 +0400 Pavel Shilovsky…
---
 fs/cifs/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/file.c +0 -0
index bb71471..a9b4a24 100644

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...

#3 lore raw
In reply to a message not in the archive

merged

Quoted 26 lines · Pavel Shilovsky

---
 fs/cifs/file.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/file.c +1 -2
index bb71471..a9b4a24 100644
@@ -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