diff options
author | Doron Roberts-Kedes <doronrk@fb.com> | 2018-07-26 17:59:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-29 08:53:31 +0300 |
commit | 2da19ed3e4a87db16c0f69039da9f17a9596c350 (patch) | |
tree | 6dd8ede8accd1eb18152b00f6004d7df14d42b37 /sound/usb | |
parent | 5a3611efe5b3095f348c892d040202b2ae969f4e (diff) | |
download | linux-2da19ed3e4a87db16c0f69039da9f17a9596c350.tar.xz |
tls: Fix improper revert in zerocopy_from_iter
The current code is problematic because the iov_iter is reverted and
never advanced in the non-error case. This patch skips the revert in the
non-error case. This patch also fixes the amount by which the iov_iter
is reverted. Currently, iov_iter is reverted by size, which can be
greater than the amount by which the iter was actually advanced.
Instead, only revert by the amount that the iter was advanced.
Fixes: 4718799817c5 ("tls: Fix zerocopy_from_iter iov handling")
Signed-off-by: Doron Roberts-Kedes <doronrk@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/usb')
0 files changed, 0 insertions, 0 deletions