ACPICA: acpidump: fix return values in ap_is_valid_checksum()
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Fri, 12 Sep 2025 20:06:08 +0000 (22:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Sep 2025 10:20:13 +0000 (12:20 +0200)
commit54ba9071a04b0d05086826c442c2de5830fce5bf
tree30a08e14cac1397bd6c8ad1eed9f643aa3ed1990
parent81f92cff6d423f86ed7cbc9d7fa967c6c92f2fa8
ACPICA: acpidump: fix return values in ap_is_valid_checksum()

The function ap_is_valid_checksum() has a boolean name suggesting it
should return TRUE/FALSE, but incorrectly returns AE_OK on success and
has no explicit return on failure, leading to undefined behavior.

Fix by returning proper values:
 - FALSE when checksum validation fails
 - TRUE when checksum validation succeeds

Link: https://github.com/acpica/acpica/commit/479ba862
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/acpi/tools/acpidump/apdump.c