projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9735a22
)
libnvdimm: fix smart data retrieval
author
Dan Williams
<dan.j.williams@intel.com>
Fri, 8 Apr 2016 02:58:44 +0000
(19:58 -0700)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/drivers/nvdimm/bus.c
b/drivers/nvdimm/bus.c
index fc82743aefb6574f6a1e47ecd68e1d0b1557507f..19f822d7f65274cb3e4a737240b0bdbfd12a8548 100644
(file)
--- 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,
12
8, },
},
[ND_CMD_SMART_THRESHOLD] = {
.out_num = 2,