aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm/test/iomap.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-12-06 15:06:55 -0800
committerDan Williams <dan.j.williams@intel.com>2016-12-06 16:30:37 -0800
commitd6eb270c57fef35798525004ddf2ac5dcdadd43b (patch)
tree5ffbbc6b4585a5df44dc7d5b9017188469252684 /tools/testing/nvdimm/test/iomap.c
parentacpi, nfit: validate ars_status output buffer size (diff)
downloadlinux-dev-d6eb270c57fef35798525004ddf2ac5dcdadd43b.tar.xz
linux-dev-d6eb270c57fef35798525004ddf2ac5dcdadd43b.zip
acpi, nfit: fix bus vs dimm confusion in xlat_status
Given dimms and bus commands share the same command number space we need to be careful that we are translating status in the correct context. Otherwise we can, for example, fail an ND_CMD_GET_CONFIG_SIZE command because max_xfer is zero. It fails because that condition erroneously correlates with the 'cleared == 0' failure of ND_CMD_CLEAR_ERROR. Cc: <stable@vger.kernel.org> Fixes: aef253382266 ("libnvdimm, nfit: centralize command status translation") Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm/test/iomap.c')
0 files changed, 0 insertions, 0 deletions