[PATCH] hash: fix a memory leak

Tom Rini trini at konsulko.com
Sat Jul 15 17:03:07 CEST 2023

On Mon, Jun 12, 2023 at 10:59:10PM +0300, Sergei Antonov wrote:

> memalign() returns a pointer which is to be freed by free(). To call
> unmap_sysmem() is incorrect, furthermore it was called in a wrong scope.
> Also add a check for allocation error.
> Fixes: d7af2baa49c6 ("crypto/fsl: Fix HW accelerated hash commands")
> Cc: Breno Lima <breno.lima at nxp.com>
> Signed-off-by: Sergei Antonov <saproj at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230715/cac2261c/attachment.sig>

More information about the U-Boot mailing list