mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
Remove bcopy(), bzero(), bcmp()
bcopy() has a confusing argument order and is actually a move, not a copy; they're all deprecated since POSIX.1-2001 and removed in -2008, and we shim them out to mem*() on Linux anyway Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12996
This commit is contained in:
@@ -155,7 +155,7 @@ crypto_free_mode_ctx(void *ctx)
|
||||
#ifdef CAN_USE_GCM_ASM
|
||||
if (((gcm_ctx_t *)ctx)->gcm_Htable != NULL) {
|
||||
gcm_ctx_t *gcm_ctx = (gcm_ctx_t *)ctx;
|
||||
bzero(gcm_ctx->gcm_Htable, gcm_ctx->gcm_htab_len);
|
||||
memset(gcm_ctx->gcm_Htable, 0, gcm_ctx->gcm_htab_len);
|
||||
kmem_free(gcm_ctx->gcm_Htable, gcm_ctx->gcm_htab_len);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user