summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/bus.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-04-07 19:58:44 -0700
committerDan Williams <dan.j.williams@intel.com>2016-04-07 19:58:44 -0700
commit211291126698c8f047617565b2e2e7f822f86354 (patch)
tree7ded55a2b2734de2b5b576eced61e44abb4439de /drivers/nvdimm/bus.c
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
downloadop-kernel-dev-211291126698c8f047617565b2e2e7f822f86354.zip
op-kernel-dev-211291126698c8f047617565b2e2e7f822f86354.tar.gz
libnvdimm: fix smart data retrieval
It appears that smart data retrieval has been broken the since the initial implementation. Fix the payload size to be 128-bytes per the specification. Cc: <stable@vger.kernel.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/bus.c')
-rw-r--r--drivers/nvdimm/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index fc82743..19f822d 100644
--- a/drivers/nvdimm/bus.c
+++ b/drivers/nvdimm/bus.c
@@ -407,7 +407,7 @@ static const struct nd_cmd_desc __nd_cmd_dimm_descs[] = {
[ND_CMD_IMPLEMENTED] = { },
[ND_CMD_SMART] = {
.out_num = 2,
- .out_sizes = { 4, 8, },
+ .out_sizes = { 4, 128, },
},
[ND_CMD_SMART_THRESHOLD] = {
.out_num = 2,
OpenPOWER on IntegriCloud