aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2017-07-21 16:42:37 +0100
committerHerbert Xu <[email protected]>2017-08-03 13:52:44 +0800
commitcc4d110ec824d3f05f95b1f705158afc6fb08773 (patch)
tree8c09c9f195f61aca2f240efc71dd229cf50e38ed /lib/mpi/mpiutil.c
parent3c08377262880afc1621ab9cb6dbe7df47a6033d (diff)
crypto: scompress - free partially allocated scratch buffers on failure
When allocating the per-CPU scratch buffers, we allocate the source and destination buffers separately, but bail immediately if the second allocation fails, without freeing the first one. Fix that. Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions