Re: [PATCH] [v2] evm: Fix memleak in init_desc

From: Mimi Zohar
Date: Wed Jan 13 2021 - 10:17:39 EST


Hi Dinghao,

On Sun, 2021-01-10 at 16:02 +0800, Dinghao Liu wrote:
> When kmalloc() fails, tmp_tfm allocated by
> crypto_alloc_shash() has not been freed, which
> leads to memleak.
>
> Fixes: d46eb3699502b ("evm: crypto hash replaced by shash")
> Signed-off-by: Dinghao Liu <dinghao.liu@xxxxxxxxxx>

This patch is now queued, with an updated patch description, in next-
integrity-testing.

thanks,

Mimi