aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cxgbe/crypto/t4_kern_tls.c3
-rw-r--r--sys/dev/random/randomdev.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/cxgbe/crypto/t4_kern_tls.c b/sys/dev/cxgbe/crypto/t4_kern_tls.c
index 29595c16568d..4102e11fa023 100644
--- a/sys/dev/cxgbe/crypto/t4_kern_tls.c
+++ b/sys/dev/cxgbe/crypto/t4_kern_tls.c
@@ -2337,8 +2337,7 @@ cxgbe_tls_tag_free(struct m_snd_tag *mst)
if (tlsp->tx_key_addr >= 0)
free_keyid(tlsp, tlsp->tx_key_addr);
- explicit_bzero(&tlsp->keyctx, sizeof(&tlsp->keyctx));
- free(tlsp, M_CXGBE);
+ zfree(tlsp, M_CXGBE);
}
void
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 785a4e16e4c9..363d91c37731 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -241,8 +241,7 @@ int
if (error == ERESTART || error == EINTR)
error = 0;
- explicit_bzero(random_buf, bufsize);
- free(random_buf, M_ENTROPY);
+ zfree(random_buf, M_ENTROPY);
return (error);
}