]> www.infradead.org Git - users/hch/misc.git/commit
dma-mapping: fix DMA API tracing for chained scatterlists dma-trace-fix
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 07:32:43 +0000 (09:32 +0200)
commita8fc574198c38230723ada3e272261324a68b398
treee760e96908fe3f946aa32de91bc172349bb8a2b5
parentabf2050f51fdca0fd146388f83cddd95a57a008d
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>
Tested-by: syzbot+95e4ef83a3024384ec7a@syzkaller.appspotmail.com
include/trace/events/dma.h