AMD IOMMU: fix iommu_map_page function

Impact: bugfix in iommu_map_page function

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

+1 -1
+1 -1
arch/x86/kernel/amd_iommu.c
··· 344 344 u64 __pte, *pte, *page; 345 345 346 346 bus_addr = PAGE_ALIGN(bus_addr); 347 - phys_addr = PAGE_ALIGN(bus_addr); 347 + phys_addr = PAGE_ALIGN(phys_addr); 348 348 349 349 /* only support 512GB address spaces for now */ 350 350 if (bus_addr > IOMMU_MAP_SIZE_L3 || !(prot & IOMMU_PROT_MASK))