summaryrefslogtreecommitdiff
path: root/arch/nds32/kernel/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-06-03 20:37:08 +0800
committerMarek Szyprowski <m.szyprowski@samsung.com>2026-06-03 16:29:53 +0200
commit9bfaa86b405381326c971984fd6da184c289713f (patch)
tree37b68b9a67fe019c7ae2b4356e3fd3135392cbe7 /arch/nds32/kernel/git@git.tavy.me:linux.git
parent560000d619ef162568746ce287f0c725e24ea967 (diff)
dma-debug: fix physical address retrieval in debug_dma_sync_sg_for_device
In debug_dma_sync_sg_for_device(), when iterating over a scatterlist, the debug entry population mistakenly uses the head of the scatterlist 'sg' to fetch the physical address via sg_phys(), instead of using the current iterator variable 's'. This causes dma-debug to track the physical address of the very first scatterlist entry for all subsequent entries in the list. Fix this by passing the correct loop iterator 's' to sg_phys() Fixes: 9d4f645a1fd49ee ("dma-debug: store a phys_addr_t in struct dma_debug_entry") Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20260603123708.1665-1-lirongqing@baidu.com
Diffstat (limited to 'arch/nds32/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions