git: ddf0b5666bf5 - stable/14 - acpi: Pass the correct device to acpi_pcib_osc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Apr 2025 17:43:27 UTC
The branch stable/14 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=ddf0b5666bf550392a84847b76e3738693937a38
commit ddf0b5666bf550392a84847b76e3738693937a38
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-01-03 16:03:31 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-04-08 17:35:45 +0000
acpi: Pass the correct device to acpi_pcib_osc
Fix a copy-and-paste error in acpi_pcib_request_feature where the
child device was passed into acpi_pcib_osc rather than the pcib
device.
Reviewed by: garga, jhb
Fixes: ba1904937d9a ("acpica: Extract _OSC parsing to a common file")
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D48285
(cherry picked from commit b714eacb790551f35de03831b88ad7b7e1502102)
---
sys/dev/acpica/acpi_pcib_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c
index c0274e84fdeb..f2b05a98a0d1 100644
--- a/sys/dev/acpica/acpi_pcib_acpi.c
+++ b/sys/dev/acpica/acpi_pcib_acpi.c
@@ -763,7 +763,7 @@ acpi_pcib_request_feature(device_t pcib, device_t dev, enum pci_feature feature)
return (EINVAL);
}
- return (acpi_pcib_osc(dev, &sc->ap_osc_ctl, osc_ctl));
+ return (acpi_pcib_osc(pcib, &sc->ap_osc_ctl, osc_ctl));
}
static bus_dma_tag_t