Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163356133
D27653.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
882 B
Referenced Files
None
Subscribers
None
D27653.id.diff
View Options
Index: sys/dev/acpi_support/acpi_wmi.c
===================================================================
--- sys/dev/acpi_support/acpi_wmi.c
+++ sys/dev/acpi_support/acpi_wmi.c
@@ -246,7 +246,7 @@
if ((sc->ec_dev = devclass_get_device(devclass_find("acpi_ec"), 0))
== NULL)
device_printf(dev, "cannot find EC device\n");
- else if (ACPI_FAILURE((status = AcpiInstallNotifyHandler(sc->wmi_handle,
+ if (ACPI_FAILURE((status = AcpiInstallNotifyHandler(sc->wmi_handle,
ACPI_DEVICE_NOTIFY, acpi_wmi_notify_handler, sc))))
device_printf(sc->wmi_dev, "couldn't install notify handler - %s\n",
AcpiFormatException(status));
@@ -701,6 +701,8 @@
return (AE_BAD_PARAMETER);
if (address + (width / 8) - 1 > 0xFF)
return (AE_BAD_ADDRESS);
+ if (sc->ec_dev == NULL)
+ return (AE_NOT_FOUND);
if (function == ACPI_READ)
*value = 0;
ec_addr = address;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 11:18 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35400235
Default Alt Text
D27653.id.diff (882 B)
Attached To
Mode
D27653: acpi_wmi: Allow attachment to ACPI node if EC is not found.
Attached
Detach File
Event Timeline
Log In to Comment