]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - fs/cifs/file.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[linux-2.6.git] / fs / cifs / file.c
index cef5844511132a8b6d445cbcbb5658e29db874e7..378acdafa356799faa4137f608e59724ad44919a 100644 (file)
@@ -1751,7 +1751,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;