]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 18 Jan 2023 10:41:19 +0000 (11:41 +0100)
commitcb578554c4eff5048f4f894ec571b4d6d35aedf7
treedbfd43bdce3ad70ef7632a6005dd001d718b03d2
parent52b3b5cd172b9fbc550182b6d38c94c8192d0310
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: 653832c99eb4 ("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