Page MenuHomeFreeBSD

acpi: fix device_get_property invalid return
ClosedPublic

Authored by bag_semihalf.com on Nov 24 2021, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 9, 12:42 PM
Unknown Object (File)
Tue, Jun 9, 8:13 AM
Unknown Object (File)
Mon, Jun 8, 9:59 PM
Unknown Object (File)
Sun, Jun 7, 11:22 AM
Unknown Object (File)
Wed, May 20, 9:27 AM
Unknown Object (File)
May 12 2026, 4:31 AM
Unknown Object (File)
May 7 2026, 12:20 AM
Unknown Object (File)
Apr 29 2026, 2:01 AM
Subscribers

Details

Summary

Previously ACPI implementation of device_get_property returned -1
when property was found, but it's type was not supported. This caused
device_has_property to return false in that scenario, which is
incorrect.

From now on, ACPI's device_get_property will return 0, when property type
is not unrecognized.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable