Dinghao Liu
494e9ec12c
evm: Fix memleak in init_desc
[ Upstream commit ccf11dbaa0 ]
tmp_tfm is allocated, but not freed on subsequent kmalloc failure, which
leads to a memory leak. Free tmp_tfm.
Fixes: d46eb36995 ("evm: crypto hash replaced by shash")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
[zohar@linux.ibm.com: formatted/reworded patch description]
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:40 +01:00
..
2021-03-04 11:37:40 +01:00
2020-12-30 11:54:17 +01:00
2020-09-16 18:53:42 +03:00
2020-10-15 15:58:18 -07:00
2020-10-05 13:37:04 +02:00
2020-07-08 08:27:57 +02:00
2020-08-31 17:46:50 -04:00
2020-07-16 21:48:11 -04:00
2019-11-13 00:33:23 +11:00
2019-11-13 00:33:23 +11:00