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)
Wed, Oct 8, 9:05 AM
Unknown Object (File)
Wed, Oct 8, 5:50 AM
Unknown Object (File)
Wed, Oct 1, 7:43 PM
Unknown Object (File)
Sat, Sep 20, 1:15 PM
Unknown Object (File)
Sep 13 2025, 9:03 AM
Unknown Object (File)
Sep 1 2025, 6:54 PM
Unknown Object (File)
Sep 1 2025, 6:53 PM
Unknown Object (File)
Aug 25 2025, 5:43 PM
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