]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/testing/nvdimm: fix return code for unimplemented commands
authorDan Williams <dan.j.williams@intel.com>
Fri, 10 Jul 2015 17:06:12 +0000 (11:06 -0600)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:03 +0000 (12:19 -0500)
commit718a15c97c28c40bbfcd0f8a85f41d771edd0ada
tree2845ce030f9b0b03f3dc025758c1ca18d89681e7
parentad113eb48ae5127d8cdb424e757e30c5715e925f
tools/testing/nvdimm: fix return code for unimplemented commands

Orabug: 22913653

The implementation for the new "DIMM Flags" DSM relies on the -ENOTTY
return code to indicate that the flags are unimplimented and to fall
back to a safe default.  As is the -ENXIO error code erroneoously
indicates to fail enabling a BLK region.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit f7ec83684af020c961d7fab801f8e3ef7ce5de33)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
tools/testing/nvdimm/test/nfit.c