diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-01-10 09:02:53 +0100 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2021-01-13 13:22:12 +0100 |
commit | ccf11dbaa07b328fa469415c362d33459c140a37 (patch) | |
tree | 34c1acb7bb4be53c6899a9c7d2302747ad48b768 /include/acpi/battery.h | |
parent | Linux 5.11-rc3 (diff) | |
download | linux-ccf11dbaa07b328fa469415c362d33459c140a37.tar.xz linux-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 'include/acpi/battery.h')
0 files changed, 0 insertions, 0 deletions