summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorSergei Antonov <[email protected]>2023-06-12 22:59:10 +0300
committerTom Rini <[email protected]>2023-07-14 15:21:07 -0400
commit497e3a89ba46e0f1b1e7772bbd1e1a4c3fff17a5 (patch)
treed13710d49e6637eb15720294bd276779307f8ddb /scripts/basic
parent45a0052939927fbae35e419a7591877c41a06163 (diff)
hash: fix a memory leak
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 <[email protected]> Signed-off-by: Sergei Antonov <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions