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)
Sun, Aug 18, 9:19 AM
Unknown Object (File)
Wed, Aug 14, 6:51 PM
Unknown Object (File)
Sat, Aug 10, 4:21 PM
Unknown Object (File)
Jun 27 2024, 9:06 PM
Unknown Object (File)
Jun 27 2024, 7:42 PM
Unknown Object (File)
Jun 22 2024, 1:10 AM
Unknown Object (File)
Jun 22 2024, 12:55 AM
Unknown Object (File)
Jun 22 2024, 12:35 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