Page MenuHomeFreeBSD

D56816.id177406.diff
No OneTemporary

D56816.id177406.diff

diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -366,6 +366,7 @@
struct acpi_spmc_softc *const sc = device_get_softc(dev);
const ACPI_HANDLE handle = acpi_get_handle(dev);
char buf[32];
+ int error;
/*
* ACPI_ID_PROBE() in acpi_spmc_probe() cannot succeed without a handle.
@@ -400,7 +401,12 @@
}
/* Get device constraints. We can only call this once so do this now. */
- acpi_spmc_get_constraints(sc);
+ error = acpi_spmc_get_constraints(sc);
+ if (error != 0)
+ /* acpi_spmc_get_constraints() takes care of cleaning up. */
+ device_printf(dev,
+ "Could not parse power state constraints (%d), "
+ "will not check for them before suspend\n", error);
sc->eh_suspend = EVENTHANDLER_REGISTER(acpi_post_dev_suspend,
acpi_spmc_suspend, dev, 0);

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 4:05 PM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36899282
Default Alt Text
D56816.id177406.diff (873 B)

Event Timeline