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
F164293881: D33103.id98944.diff
Thu, Jul 30, 11:51 AM
Unknown Object (File)
Tue, Jul 28, 9:16 PM
Unknown Object (File)
Sun, Jul 26, 10:49 PM
Unknown Object (File)
Fri, Jul 24, 11:39 PM
Unknown Object (File)
Fri, Jul 24, 10:04 PM
Unknown Object (File)
Thu, Jul 23, 3:35 PM
Unknown Object (File)
Sun, Jul 19, 8:49 AM
Unknown Object (File)
Tue, Jul 14, 10:18 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