]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Fix zerocopy_from_iter iov handling
authorBoris Pismenny <borisp@mellanox.com>
Fri, 13 Jul 2018 11:33:44 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 07:13:11 +0000 (00:13 -0700)
commit00d501613c1435980a92ebfabb4ffd64b9bcb566
treea014c9c6f4414480c86e0a8141b1cd94c8fa6998
parent512639d24cd0662df8fd7cad660990f53ebbea25
tls: Fix zerocopy_from_iter iov handling

zerocopy_from_iter iterates over the message, but it doesn't revert the
updates made by the iov iteration. This patch fixes it. Now, the iov can
be used after calling zerocopy_from_iter.

Fixes: 3a71956a2 ("tls: kernel TLS support")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c