acpi, nfit: fix extended status translations for ACPI DSMs
authorVishal Verma <vishal.l.verma@intel.com>
Tue, 6 Dec 2016 00:00:37 +0000 (17:00 -0700)
committerMateusz Majewski <m.majewski2@samsung.com>
Tue, 28 May 2024 08:28:20 +0000 (10:28 +0200)
commite7bb447efb08dc280d950fa554764133614ff64c
tree73d320770c5d5f6758861ba4ef92943b37d280e8
parent9714b712a8614b5275ca712a75823c7a3fe6bfcb
acpi, nfit: fix extended status translations for ACPI DSMs

ACPI DSMs can have an 'extended' status which can be non-zero to convey
additional information about the command. In the xlat_status routine,
where we translate the command statuses, we were returning an error for
a non-zero extended status, even if the primary status indicated success.

Return from each command's 'case' once we have verified both its status
and extend status are good.

Cc: <stable@vger.kernel.org>
Fixes: 11294d63ac91 ("nfit: fail DSMs that return non-zero status by default")
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c