diff mbox series

ndctl: update security handling post overwrite

Message ID 155233359788.16519.1363511796795900412.stgit@djiang5-desk3.ch.intel.com (mailing list archive)
State Accepted
Commit 8521a77bab654d773dba2528cde8a5a25e83d4dc
Headers show
Series ndctl: update security handling post overwrite | expand

Commit Message

Dave Jiang March 11, 2019, 7:46 p.m. UTC
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.jiang@intel.com>
---
 ndctl/util/keys.c |    3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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;
 }