summaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorPavel Shilovsky2014-07-10 08:03:29 +0200
committerSteve French2014-08-02 08:23:04 +0200
commit34a54d617785e5ecafe1605df7aa689ec193964c (patch)
treebd22b7234faca95e6eefb113ab5709a5952ef289 /fs/cifs/file.c
parentCIFS: Indicate reconnect with ECONNABORTED error code (diff)
downloadkernel-qcow2-linux-34a54d617785e5ecafe1605df7aa689ec193964c.tar.gz
kernel-qcow2-linux-34a54d617785e5ecafe1605df7aa689ec193964c.tar.xz
kernel-qcow2-linux-34a54d617785e5ecafe1605df7aa689ec193964c.zip
CIFS: Use separate var for the number of bytes got in async read
and don't mix it with the number of bytes that was requested. Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 9582ded2332e..3d5d48838519 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -2840,7 +2840,7 @@ cifs_uncached_readdata_release(struct kref *refcount)
static int
cifs_readdata_to_iov(struct cifs_readdata *rdata, struct iov_iter *iter)
{
- size_t remaining = rdata->bytes;
+ size_t remaining = rdata->got_bytes;
unsigned int i;
for (i = 0; i < rdata->nr_pages; i++) {