diff options
author | Toshi Kani <[email protected]> | 2017-04-27 16:57:05 -0600 |
---|---|---|
committer | Dan Williams <[email protected]> | 2017-04-28 15:56:26 -0700 |
commit | 8d13c0290655b883df9083a2a0af0d782bc38aef (patch) | |
tree | 21cff984f2c5be871fdcceb749b077b78562d2cd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b2518c78ce76896f0f8f7940bf02104b227e1709 (diff) |
libnvdimm: fix clear length of nvdimm_forget_poison()
ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length
of error actually cleared, which may be smaller than its requested
'len'.
Change nvdimm_clear_poison() to call nvdimm_forget_poison() with
'clear_err.cleared' when this value is valid.
Cc: <[email protected]>
Fixes: e046114af5fc ("libnvdimm: clear the internal poison_list when clearing badblocks")
Cc: Dave Jiang <[email protected]>
Cc: Vishal Verma <[email protected]>
Signed-off-by: Toshi Kani <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions