]> git.baikalelectronics.ru Git - kernel.git/commit
nfit: fix translation of command status results
authorDan Williams <dan.j.williams@intel.com>
Mon, 2 May 2016 16:11:53 +0000 (09:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 2 May 2016 16:11:53 +0000 (09:11 -0700)
commit2b126af6f2a62ee1d8e120b2dbe812beecf9de34
treed18453036e12539f37828541244b74811b167f6a
parentad75caf247352b1e18344b6488c16afd26ef32ca
nfit: fix translation of command status results

When transportation of the command completes successfully, it indicates
that the 'status' result is valid.  Fix the missed checking and
translation of the status field at the end of acpi_nfit_ctl().
Otherwise, we fail to handle reported errors and assume commands
complete successfully.

Reported-by: Linda Knippers <linda.knippers@hpe.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c