X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Fcrypto%2Fkeywrap.c;fp=kernel%2Fcrypto%2Fkeywrap.c;h=72014f963ba7a65cbb3dd856a63f25ab647c3209;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=b1d106ce55f3d9c98bba9a54f301d4d94f12d982;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git 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; }