]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Dec 2016 16:50:35 +0000 (08:50 -0800)
commit483ac1487a9db5898423db0a8b31805f524b8012
tree242bda8a330df1cf5ed248428537d3d4378a611f
parent0525cebf8ef7f3f384463d9efad6e30874d04702
acpi, nfit: fix extended status translations for ACPI DSMs

commit 9a901f5495e26e691c7d0ea7b6057a2f3e6330ed upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/nfit/core.c