Skip to content

Commit 2bafc7a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: CIFS: Fix wrong length in cifs_iovec_read
2 parents 57a6fa9 + 2cebaa5 commit 2bafc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ cifs_iovec_read(struct file *file, const struct iovec *iov,
17371737
io_parms.pid = pid;
17381738
io_parms.tcon = pTcon;
17391739
io_parms.offset = *poffset;
1740-
io_parms.length = len;
1740+
io_parms.length = cur_len;
17411741
rc = CIFSSMBRead(xid, &io_parms, &bytes_read,
17421742
&read_data, &buf_type);
17431743
pSMBr = (struct smb_com_read_rsp *)read_data;

0 commit comments

Comments
 (0)