summaryrefslogtreecommitdiff
path: root/drivers/phy/eswin/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-05-30 07:28:52 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2026-06-12 14:56:49 +0200
commitdb50fb87015b955a5a0c155293b2dd40d63a3b9e (patch)
treea27439efa420bac7493137f57203ebe73058f11e /drivers/phy/eswin/git@git.tavy.me:linux.git
parent5ff98a0da6b48d8722eac0080e4185c417925d05 (diff)
iommu/dma-iommu: Fix wrong scatterlist length assignment in P2PDMA path
In iommu_dma_map_sg(), when handling PCI P2PDMA cases, the DMA length of the current scatterlist segment `s` is incorrectly assigned from the head entry `sg->length` instead of the current entry `s->length`. This typo causes all P2PDMA segments in the scatterlist to inherit the length of the first segment, leading to corrupted DMA lengths for multi- segment scatterlists. Fix this by using `s->length` instead of `sg->length`. Fixes: a25e7962db ("PCI/P2PDMA: Refactor the p2pdma mapping helpers") Signed-off-by: Li RongQing <lirongqing@baidu.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions