crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
authorZhang Yiqun <zhangyiqun@phytium.com.cn>
Wed, 16 Nov 2022 09:24:11 +0000 (17:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:34 +0000 (13:32 +0100)
commit314398bc1014d9d407ef3c03f4c864607a066382
treed4c3fa19c9b58ffd8b41be5119cf9297587f642f
parent0aa7be66168b1e84b2581ffff3ccb54a6c804a1e
crypto: tcrypt - Fix multibuffer skcipher speed test mem leak

[ Upstream commit 1aa33fc8d4032227253ceb736f47c52b859d9683 ]

In the past, the data for mb-skcipher test has been allocated
twice, that means the first allcated memory area is without
free, which may cause a potential memory leakage. So this
patch is to remove one allocation to fix this error.

Fixes: e161c5930c15 ("crypto: tcrypt - add multibuf skcipher...")
Signed-off-by: Zhang Yiqun <zhangyiqun@phytium.com.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/tcrypt.c