]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Calculate the correct request length based on page offset and tail size
authorLong Li <longli@microsoft.com>
Wed, 30 May 2018 19:47:57 +0000 (12:47 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Jun 2018 22:39:46 +0000 (17:39 -0500)
commit911535c4741351dd86ad57e661ea93efc6c992f2
tree40b00a77af1f00b706e2e515d3a781c08396e5c7
parentf37e043771806459e5a6d637c806959490dd9880
CIFS: Calculate the correct request length based on page offset and tail size

It's possible that the page offset is non-zero in the pages in a request,
change the function to calculate the correct data buffer length.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c