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)
commit4718799817c5a30ae723eda21f3a6c7d8701b1a4
treea014c9c6f4414480c86e0a8141b1cd94c8fa6998
parent4799ac81e52a72a6404827bf2738337bb581a174
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: 3c4d75591 ("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