summaryrefslogtreecommitdiffstats
path: root/kernel/crypto/keywrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/crypto/keywrap.c')
-rw-r--r--kernel/crypto/keywrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/crypto/keywrap.c b/kernel/crypto/keywrap.c
index b1d106ce5..72014f963 100644
--- a/kernel/crypto/keywrap.c
+++ b/kernel/crypto/keywrap.c
@@ -212,7 +212,7 @@ static int crypto_kw_decrypt(struct blkcipher_desc *desc,
SEMIBSIZE))
ret = -EBADMSG;
- memzero_explicit(&block, sizeof(struct crypto_kw_block));
+ memzero_explicit(block, sizeof(struct crypto_kw_block));
return ret;
}
@@ -297,7 +297,7 @@ static int crypto_kw_encrypt(struct blkcipher_desc *desc,
/* establish the IV for the caller to pick up */
memcpy(desc->info, block->A, SEMIBSIZE);
- memzero_explicit(&block, sizeof(struct crypto_kw_block));
+ memzero_explicit(block, sizeof(struct crypto_kw_block));
return 0;
}