libnvdimm: fix smart data retrieval
authorDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2016 02:58:44 +0000 (19:58 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2016 02:58:44 +0000 (19:58 -0700)
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>
drivers/nvdimm/bus.c

index fc82743aefb6574f6a1e47ecd68e1d0b1557507f..19f822d7f65274cb3e4a737240b0bdbfd12a8548 100644 (file)
@@ -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,