diff options
| author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-07-28 13:27:28 +0300 |
|---|---|---|
| committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-08-05 05:53:57 +0200 |
| commit | af73a21a8eb460744d733fa5e2627935ed125081 (patch) | |
| tree | aa63ec53ddd8b35d7fa3d0b5ca5b19db4d0995ea /include/linux/workqueue.h | |
| parent | 039701ea3d76ec004863fd7437fb56a9146cb094 (diff) | |
thunderbolt: stream: Fix possible short reads/writes
Since copy_page_{to|from}_iter() advances the iterator and makes
iov_iter_count() reflect the remaining bytes, subtracting nbytes from it
makes it count it twice resulting in possible short reads/writes on a
read/write spanning multiple frames.
Fix this by using iov_iter_count() directly.
Fixes: 6db21d817b43 ("thunderbolt: Add support for USB4STREAM")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
