nfit: fail DSMs that return non-zero status by default
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 Sep 2016 16:21:26 +0000 (09:21 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 21 Sep 2016 16:35:19 +0000 (09:35 -0700)
commit11294d63ac915230a36b0603c62134ef7b173d0a
treeaf6ca958a7d5213c512c7640e0b453cecf3a97e9
parentecfb6d8a041cc2ca80bc69ffc20c00067d190df5
nfit: fail DSMs that return non-zero status by default

For the DSMs where the kernel knows the format of the output buffer and
originates those DSMs from within the kernel, return -EIO for any
non-zero status.  If the BIOS is indicating a status that we do not know
how to handle, fail the DSM.

Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c