summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorDan Williams2018-04-09 21:34:24 +0200
committerDan Williams2018-04-16 17:18:51 +0200
commite7c5a571a8d6a266aee9ca3f3f26e5afe3717eca (patch)
treeb3f9dbb9f9f7cc95d05384f0dd0bcea01130796e /tools/testing
parentLinux 4.17-rc1 (diff)
downloadkernel-qcow2-linux-e7c5a571a8d6a266aee9ca3f3f26e5afe3717eca.tar.gz
kernel-qcow2-linux-e7c5a571a8d6a266aee9ca3f3f26e5afe3717eca.tar.xz
kernel-qcow2-linux-e7c5a571a8d6a266aee9ca3f3f26e5afe3717eca.zip
libnvdimm, dimm: handle EACCES failures from label reads
The new support for the standard _LSR and _LSW methods neglected to also update the nvdimm_init_config_data() and nvdimm_set_config_data() to return the translated error code from failed commands. This precision is necessary because the locked status that was previously returned on ND_CMD_GET_CONFIG_SIZE commands is now returned on ND_CMD_{GET,SET}_CONFIG_DATA commands. If the kernel misses this indication it can inadvertently fall back to label-less mode when it should otherwise avoid all access to locked regions. Cc: <stable@vger.kernel.org> Fixes: 4b27db7e26cd ("acpi, nfit: add support for the _LSI, _LSR, and...") Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions