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
F102176792: D33103.diff
Fri, Nov 8, 1:31 PM
Unknown Object (File)
Sun, Nov 3, 5:14 PM
Unknown Object (File)
Wed, Oct 23, 10:03 PM
Unknown Object (File)
Sat, Oct 19, 11:54 AM
Unknown Object (File)
Sep 28 2024, 1:53 AM
Unknown Object (File)
Sep 14 2024, 11:54 AM
Unknown Object (File)
Sep 8 2024, 8:46 AM
Unknown Object (File)
Sep 7 2024, 10:42 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