The security state after overwrite completion is expected to remain the same as before overwrite. Current implementation assumed that overwrite would remove the security state and therefore removing the keys. Update so security keys are not removed.
Dave Jiang <dave.ji...@intel.com> --- ndctl/util/keys.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ndctl/util/keys.c b/ndctl/util/keys.c index c1f2e843..f315802c 100644 --- a/ndctl/util/keys.c +++ b/ndctl/util/keys.c @@ -650,8 +650,5 @@ int ndctl_dimm_overwrite_key(struct ndctl_dimm *dimm) if (rc < 0) return rc; - if (key > 0) - return discard_key(dimm); - return 0; } _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm