]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDan Williams <dan.j.williams@intel.com>
Wed, 7 Dec 2016 00:08:10 +0000 (16:08 -0800)
commitccd9acbec6227fceabe3c417157ae19764b52645
treef923c2732e3cdbe9fe49fc25234d185c27bf8e1e
parentdc498540352267f9c2608498e0757e7908383f83
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: 1b2c5ef94d29 ("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