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)
Thu, Feb 5, 12:17 AM
Unknown Object (File)
Jan 15 2026, 8:02 AM
Unknown Object (File)
Jan 12 2026, 7:04 PM
Unknown Object (File)
Jan 5 2026, 8:21 PM
Unknown Object (File)
Jan 2 2026, 3:26 AM
Unknown Object (File)
Dec 30 2025, 8:45 PM
Unknown Object (File)
Dec 14 2025, 3:42 PM
Unknown Object (File)
Dec 10 2025, 1:13 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