author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2020-12-04 09:01:36 +0100
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2020-12-31 10:48:53 +0100
commit: f93274ef0fe972c120c96b3207f8fce376231a60
parent: 0acfbe9ce46925ac92f6e27d0e273297e57c633c
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/crypto/asymmetric_keys/asym_tpm.c b/crypto/asymmetric_keys/asym_tpm.c
index 511932aa94a6..0959613560b9 100644
--- a/crypto/asymmetric_keys/asym_tpm.c
+++ b/crypto/asymmetric_keys/asym_tpm.c
@@ -354,7 +354,7 @@ static uint32_t derive_pub_key(const void *pub_key, uint32_t len, uint8_t *buf)
memcpy(cur, e, sizeof(e));
cur += sizeof(e);
/* Zero parameters to satisfy set_pub_key ABI. */
- memset(cur, 0, SETKEY_PARAMS_SIZE);
+ memzero_explicit(cur, SETKEY_PARAMS_SIZE);
return cur - buf;
}