]> www.infradead.org Git - users/hch/block.git/commit
dma-mapping: fix DMA API tracing for chained scatterlists
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Sep 2024 06:35:24 +0000 (08:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 26 Sep 2024 18:08:12 +0000 (20:08 +0200)
commitbfc4a245a794841cba5cf287034a0f60d3087402
treeb0abf963924560ba76848f7aad144ab5ab4fdb32
parentb348b6d17fd1d5d89b86db602f02bea54a754bd8
dma-mapping: fix DMA API tracing for chained scatterlists

scatterlist allocations can be chained, and thus all iterations need to
use the chain-aware iterators.  Switch the newly added tracing to use the
proper iterators so that they work with chained scatterlists.

Fixes: 038eb433dc14 ("dma-mapping: add tracing for dma-mapping API calls")
Reported-by: syzbot+95e4ef83a3024384ec7a@syzkaller.appspotmail.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sean Anderson <sean.anderson@linux.dev>
Tested-by: syzbot+95e4ef83a3024384ec7a@syzkaller.appspotmail.com
include/trace/events/dma.h