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)
Wed, Apr 17, 12:33 PM
Unknown Object (File)
Sat, Apr 6, 5:54 PM
Unknown Object (File)
Feb 3 2024, 8:07 PM
Unknown Object (File)
Dec 12 2023, 3:59 AM
Unknown Object (File)
Oct 7 2023, 8:52 PM
Unknown Object (File)
Sep 23 2023, 7:38 AM
Unknown Object (File)
Aug 16 2023, 6:13 PM
Unknown Object (File)
Jul 21 2023, 5:41 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