]> 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)
commit033a1f89c839849ee27fef53d4b61c633064a5cf
treedbfd43bdce3ad70ef7632a6005dd001d718b03d2
parent2e22ba2b5ba412e1c15dba27e1c290b69825e618
crypto: tcrypt - Fix multibuffer skcipher speed test mem leak

[ Upstream commit dafb82db900cf7d7e66a4baa2928065c84dd7860 ]

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: 4f414ad2b38c ("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