Skip to content
Snippets Groups Projects
Commit f7ec8368 authored by Dan Williams's avatar Dan Williams
Browse files

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: default avatarDan Williams <dan.j.williams@intel.com>
parent b1b2e623
No related branches found
No related tags found
No related merge requests found
......@@ -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++)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment