diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 8ea0d3fcb580a63a506787a06dc48756bb64fcfd..769cc2a88040c5fe4f2dfb06ea7d8b7d984e8d17 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1941,6 +1941,7 @@ static int test_akcipher_one(struct crypto_akcipher *tfm, if (err) goto free_req; + err = -ENOMEM; out_len_max = crypto_akcipher_maxsize(tfm); outbuf_enc = kzalloc(out_len_max, GFP_KERNEL); if (!outbuf_enc)