aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2020-08-17 10:00:55 +0000
committerJens Axboe <[email protected]>2020-09-03 02:59:40 +0000
commit7e24969022cbd61ddc586f14824fc205661bb124 (patch)
tree64854a523b26e7ae9f058097b5d0e5bbacaf4bd7 /net/switchdev/switchdev.c
parentblk-stat: make q->stats->lock irqsafe (diff)
downloadkernel-7e24969022cbd61ddc586f14824fc205661bb124.tar.gz
kernel-7e24969022cbd61ddc586f14824fc205661bb124.zip
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions