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, Dec 14, 3:42 PM
Unknown Object (File)
Wed, Dec 10, 1:13 PM
Unknown Object (File)
Wed, Dec 10, 7:33 AM
Unknown Object (File)
Mon, Dec 8, 11:56 AM
Unknown Object (File)
Tue, Dec 2, 6:10 PM
Unknown Object (File)
Nov 7 2025, 12:21 PM
Unknown Object (File)
Nov 3 2025, 4:44 PM
Unknown Object (File)
Oct 28 2025, 10:51 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