[PATCH 1/2] ACPI: LoongArch: Fix incorrect pointer argument in acpi_iovt_init()

From: Bibo Mao

Date: Tue Nov 10 2026 - 03:47:47 EST


In acpi_iovt_init(), hdr is of type struct acpi_table_iovt *. Passing
&hdr results in a pointer to the local variable rather than a pointer
to the IOVT table. Drop the address-of operator and pass hdr directly.

Fixes: a9b0c34507eb ("ACPI: LoongArch: Add acpi_arch_[late]_init()")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Bibo Mao <maobibo@xxxxxxxxxxx>
---
drivers/acpi/loongarch/iovt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/loongarch/iovt.c b/drivers/acpi/loongarch/iovt.c
index 87cee4f0fc80..6c5bcb4df7d8 100644
--- a/drivers/acpi/loongarch/iovt.c
+++ b/drivers/acpi/loongarch/iovt.c
@@ -184,7 +184,7 @@ void __init acpi_iovt_init(void)
return;
}

- iovt = (struct acpi_table_iovt *)&hdr;
+ iovt = (struct acpi_table_iovt *)hdr;
iommu = ACPI_ADD_PTR(struct acpi_iovt_iommu, iovt, iovt->iommu_offset);
for (i = 0; i < iovt->iommu_count; i++) {
iovt_enable_acs(iommu);
--
2.39.3