]> 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)
commit4a699f0f9ff88cbb66b4c547c7cab9071e107c5e
treea014c9c6f4414480c86e0a8141b1cd94c8fa6998
parent81b6ef1732a94246f14c5346364839adb6792b11
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: c2c217d10 ("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