diff options
author | Ira Weiny <ira.weiny@intel.com> | 2020-08-11 03:02:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-19 09:16:23 +0300 |
commit | 49a5b473bc66d6f561d68a062c0708d4a0789400 (patch) | |
tree | f511249901cf58bdae74c70fb52d98b5e858e0ad /include/net/tcp.h | |
parent | 7bedf1d86298c98240add8fcd8eafd8f2d9f2d2f (diff) | |
download | linux-49a5b473bc66d6f561d68a062c0708d4a0789400.tar.xz |
net/tls: Fix kmap usage
[ Upstream commit b06c19d9f827f6743122795570bfc0c72db482b0 ]
When MSG_OOB is specified to tls_device_sendpage() the mapped page is
never unmapped.
Hold off mapping the page until after the flags are checked and the page
is actually needed.
Fixes: e8f69799810c ("net/tls: Add generic NIC offload infrastructure")
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/tcp.h')
0 files changed, 0 insertions, 0 deletions