aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_policy.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_policy.c
parentLinux 5.11-rc3 (diff)
downloadlinux-dev-ccf11dbaa07b328fa469415c362d33459c140a37.tar.xz
linux-dev-ccf11dbaa07b328fa469415c362d33459c140a37.zip
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_policy.c')
0 files changed, 0 insertions, 0 deletions