summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorSimon Xue <xxm@rock-chips.com>2025-06-23 10:00:18 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-10 16:05:12 +0200
commit53892dc6869388d0378c36ad31c9c3d8320d3f80 (patch)
treee44bd641c3a463e45bc09eab831f8f6b760da9ab /include/net/aligned_data.h
parent5f28563f0c6862c99eb115c918421d9b73f137ad (diff)
iommu/rockchip: prevent iommus dead loop when two masters share one IOMMU
commit 62e062a29ad5133f67c20b333ba0a952a99161ae upstream. When two masters share an IOMMU, calling ops->of_xlate during the second master's driver init may overwrite iommu->domain set by the first. This causes the check if (iommu->domain == domain) in rk_iommu_attach_device() to fail, resulting in the same iommu->node being added twice to &rk_domain->iommus, which can lead to an infinite loop in subsequent &rk_domain->iommus operations. Cc: <stable@vger.kernel.org> Fixes: 25c2325575cc ("iommu/rockchip: Add missing set_platform_dma_ops callback") Signed-off-by: Simon Xue <xxm@rock-chips.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/20250623020018.584802-1-xxm@rock-chips.com Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions