diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-01-14 12:24:49 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-25 18:49:00 +0100 |
commit | babc92da5928f81af951663fc436997352e02d3a (patch) | |
tree | e2c293e0cdb2cfeebc95c35ff190e27223637e94 /drivers/acpi/pmic | |
parent | Linux 5.17-rc1 (diff) | |
download | linux-babc92da5928f81af951663fc436997352e02d3a.tar.xz linux-babc92da5928f81af951663fc436997352e02d3a.zip |
ACPI: properties: Consistently return -ENOENT if there are no more references
__acpi_node_get_property_reference() is documented to return -ENOENT if
the caller requests a property reference at an index that does not exist,
not -EINVAL which it actually does.
Fix this by returning -ENOENT consistenly, independently of whether the
property value is a plain reference or a package.
Fixes: c343bc2ce2c6 ("ACPI: properties: Align return codes of __acpi_node_get_property_reference()")
Cc: 4.14+ <stable@vger.kernel.org> # 4.14+
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pmic')
0 files changed, 0 insertions, 0 deletions