summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_main.c
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2021-01-10 16:02:53 +0800
committerMimi Zohar <zohar@linux.ibm.com>2021-01-13 07:22:12 -0500
commitccf11dbaa07b328fa469415c362d33459c140a37 (patch)
tree34c1acb7bb4be53c6899a9c7d2302747ad48b768 /security/integrity/ima/ima_main.c
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff)
downloadlinux-ccf11dbaa07b328fa469415c362d33459c140a37.tar.bz2
evm: Fix memleak in init_desc
tmp_tfm is allocated, but not freed on subsequent kmalloc failure, which leads to a memory leak. Free tmp_tfm. Fixes: d46eb3699502b ("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>
Diffstat (limited to 'security/integrity/ima/ima_main.c')
0 files changed, 0 insertions, 0 deletions