diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-07-10 20:06:12 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-07-10 20:50:50 +0300 |
commit | f7ec83684af020c961d7fab801f8e3ef7ce5de33 (patch) | |
tree | 23abc99f7955762e0924d7d9cea83f20bb0cb706 /tools | |
parent | b1b2e6235a44174151fa3bb22657f74972635618 (diff) | |
download | linux-f7ec83684af020c961d7fab801f8e3ef7ce5de33.tar.xz |
tools/testing/nvdimm: fix return code for unimplemented commands
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/nvdimm/test/nfit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index 4b69b8368de0..092d4724fe16 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c @@ -155,7 +155,7 @@ static int nfit_test_ctl(struct nvdimm_bus_descriptor *nd_desc, int i, rc; if (!nfit_mem || !test_bit(cmd, &nfit_mem->dsm_mask)) - return -ENXIO; + return -ENOTTY; /* lookup label space for the given dimm */ for (i = 0; i < ARRAY_SIZE(handle); i++) |