diff options
author | Long Li <longli@microsoft.com> | 2018-12-17 00:17:04 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-24 05:42:19 +0100 |
commit | b6bc8a7b993e62f82415a5e3e4a6469e80fea19c (patch) | |
tree | f605009680eb4847774849021be4f4fc045009ee /mm/early_ioremap.c | |
parent | cifs: check ntwrk_buf_start for NULL before dereferencing it (diff) | |
download | linux-b6bc8a7b993e62f82415a5e3e4a6469e80fea19c.tar.xz linux-b6bc8a7b993e62f82415a5e3e4a6469e80fea19c.zip |
CIFS: use the correct length when pinning memory for direct I/O for write
The current code attempts to pin memory using the largest possible wsize
based on the currect SMB credits. This doesn't cause kernel oops but this
is not optimal as we may pin more pages then actually needed.
Fix this by only pinning what are needed for doing this write I/O.
Signed-off-by: Long Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Joey Pabalinas <joeypabalinas@gmail.com>
Diffstat (limited to 'mm/early_ioremap.c')
0 files changed, 0 insertions, 0 deletions