Message ID | 1311171849-5550-1-git-send-email-piastryyy@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, 20 Jul 2011 18:24:09 +0400 Pavel Shilovsky <piastryyy@gmail.com> wrote: > Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> > --- > 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 bb71471..a9b4a24 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, > 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 <jlayton@redhat.com> -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
merged On Wed, Jul 20, 2011 at 9:24 AM, Pavel Shilovsky <piastryyy@gmail.com> wrote: > Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> > --- > 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 bb71471..a9b4a24 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, > 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index bb71471..a9b4a24 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, 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;
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com> --- fs/cifs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)