diff options
| author | Daniil Tatianin <[email protected]> | 2023-01-06 23:53:08 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-01-10 19:19:05 +0000 |
| commit | ca843a4c79486e99a19b859ef0b9887854afe146 (patch) | |
| tree | 907736bfc180b2e12d60c6b4b13e40e772380eac /drivers/acpi/cppc_acpi.c | |
| parent | ACPICA: Constify pathname argument for acpi_get_handle() (diff) | |
| download | kernel-ca843a4c79486e99a19b859ef0b9887854afe146.tar.gz kernel-ca843a4c79486e99a19b859ef0b9887854afe146.zip | |
ACPICA: nsrepair: handle cases without a return value correctly
Previously acpi_ns_simple_repair() would crash if expected_btypes
contained any combination of ACPI_RTYPE_NONE with a different type,
e.g | ACPI_RTYPE_INTEGER because of slightly incorrect logic in the
!return_object branch, which wouldn't return AE_AML_NO_RETURN_VALUE
for such cases.
Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.
Link: https://github.com/acpica/acpica/pull/811
Fixes: 61db45ca2163 ("ACPICA: Restore code that repairs NULL package elements in return values.")
Signed-off-by: Daniil Tatianin <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
