summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2018-05-30 12:47:55 -0700
committerSteve French <smfrench@gmail.com>2018-06-02 18:36:26 -0500
commit1dbe3466b4d26078d907c64e2b68faed5dc58854 (patch)
tree71e7b518df1a3b243e4130aa66ccb53f22590466 /fs/cifs/smb2ops.c
parentf9f5aca115fd4a4b49cdc483084a0dc4ca316b25 (diff)
downloadlinux-1dbe3466b4d26078d907c64e2b68faed5dc58854.tar.bz2
CIFS: Use offset when reading pages
With offset defined in rdata, transport functions need to look at this offset when reading data into the correct places in pages. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 43ec82ae2ee5..950d0ab2cc61 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -2483,7 +2483,7 @@ read_data_into_pages(struct TCP_Server_Info *server, struct page **pages,
zero_user(page, len, PAGE_SIZE - len);
len = 0;
}
- length = cifs_read_page_from_socket(server, page, n);
+ length = cifs_read_page_from_socket(server, page, 0, n);
if (length < 0)
return length;
server->total_read += length;