From: Pavel Shilovsky Date: Wed, 20 Jul 2011 14:24:09 +0000 (+0400) Subject: CIFS: Fix wrong length in cifs_iovec_read X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cebaa58b7de775386732bbd6cd11c3f5b73faf0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git CIFS: Fix wrong length in cifs_iovec_read Signed-off-by: Pavel Shilovsky Reviewed-by: Jeff Layton Signed-off-by: Steve French --- 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, 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;