aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/poll.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2025-06-03 19:14:45 +0000
committerJoerg Roedel <[email protected]>2025-06-13 15:02:31 +0000
commitf9705d66fa7107fcd619083f7aae2afb0554a593 (patch)
tree4bb0858641aa719b023a8d4a8aaa3ab70be554f7 /rust/helpers/poll.c
parentLinux 6.16-rc1 (diff)
downloadkernel-f9705d66fa7107fcd619083f7aae2afb0554a593.tar.gz
kernel-f9705d66fa7107fcd619083f7aae2afb0554a593.zip
iommu/tegra: Fix incorrect size calculation
This driver uses a mixture of ways to get the size of a PTE, tegra_smmu_set_pde() did it as sizeof(*pd) which became wrong when pd switched to a struct tegra_pd. Switch pd back to a u32* in tegra_smmu_set_pde() so the sizeof(*pd) returns 4. Fixes: 50568f87d1e2 ("iommu/terga: Do not use struct page as the handle for as->pd memory") Reported-by: Diogo Ivo <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Jason Gunthorpe <[email protected]> Acked-by: Thierry Reding <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Tested-by: Diogo Ivo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'rust/helpers/poll.c')
0 files changed, 0 insertions, 0 deletions