diff options
author | Ming Lei <[email protected]> | 2020-08-17 18:00:55 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-09-02 20:59:40 -0600 |
commit | 7e24969022cbd61ddc586f14824fc205661bb124 (patch) | |
tree | 64854a523b26e7ae9f058097b5d0e5bbacaf4bd7 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | e11d80a849e010f78243bb6f6af7dccef3a71a90 (diff) |
block: allow for_each_bvec to support zero len bvec
Block layer usually doesn't support or allow zero-length bvec. Since
commit 1bdc76aea115 ("iov_iter: use bvec iterator to implement
iterate_bvec()"), iterate_bvec() switches to bvec iterator. However,
Al mentioned that 'Zero-length segments are not disallowed' in iov_iter.
Fixes for_each_bvec() so that it can move on after seeing one zero
length bvec.
Fixes: 1bdc76aea115 ("iov_iter: use bvec iterator to implement iterate_bvec()")
Reported-by: syzbot <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Tested-by: Tetsuo Handa <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: <[email protected]>
Link: https://www.mail-archive.com/[email protected]/msg2262077.html
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions