Commit bf0e65e2 authored by Zhang Yiqun's avatar Zhang Yiqun Committed by Yongqiang Liu
Browse files

crypto: tcrypt - Fix multibuffer skcipher speed test mem leak

stable inclusion
from stable-v4.19.270
commit e4ec2042899536b5a8f714b6eda4443d717f41bf
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6DPF8


CVE: NA

--------------------------------

[ Upstream commit 1aa33fc8 ]

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: e161c593 ("crypto: tcrypt - add multibuf skcipher...")
Signed-off-by: default avatarZhang Yiqun <zhangyiqun@phytium.com.cn>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 41ee72be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment