On Wed, 20 Jul 2011 18:24:09 +0400 Pavel Shilovsky <piastryyy@xxxxxxxxx> wrote: > Signed-off-by: Pavel Shilovsky <piastryyy@xxxxxxxxx> > --- > 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@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html