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)
Fri, Nov 8, 4:51 PM
Unknown Object (File)
Fri, Nov 8, 4:13 PM
Unknown Object (File)
Fri, Nov 8, 1:31 PM
Unknown Object (File)
Sun, Nov 3, 5:14 PM
Unknown Object (File)
Oct 23 2024, 10:03 PM
Unknown Object (File)
Oct 19 2024, 11:54 AM
Unknown Object (File)
Sep 28 2024, 1:53 AM
Unknown Object (File)
Sep 14 2024, 11:54 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