From: Joerg Roedel Date: Thu, 4 Dec 2008 14:59:48 +0000 (+0100) Subject: AMD IOMMU: fix iommu_map_page function X-Git-Tag: Ubuntu-5.10.0-12.13~35294^2~5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bb9d4ff80bc032d7961815c2ff5eaf458ae3adff;p=mirror_ubuntu-hirsute-kernel.git AMD IOMMU: fix iommu_map_page function Impact: bugfix in iommu_map_page function Signed-off-by: Joerg Roedel --- diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 5662e226b0c9..67970a8c2ee9 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -344,7 +344,7 @@ static int iommu_map(struct protection_domain *dom, u64 __pte, *pte, *page; bus_addr = PAGE_ALIGN(bus_addr); - phys_addr = PAGE_ALIGN(bus_addr); + phys_addr = PAGE_ALIGN(phys_addr); /* only support 512GB address spaces for now */ if (bus_addr > IOMMU_MAP_SIZE_L3 || !(prot & IOMMU_PROT_MASK))