summaryrefslogtreecommitdiffstats
path: root/crypto/ghash-generic.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-07-21 17:42:37 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-08-03 07:52:44 +0200
commitcc4d110ec824d3f05f95b1f705158afc6fb08773 (patch)
tree8c09c9f195f61aca2f240efc71dd229cf50e38ed /crypto/ghash-generic.c
parentcrypto: scompress - don't sleep with preemption disabled (diff)
downloadlinux-cc4d110ec824d3f05f95b1f705158afc6fb08773.tar.xz
linux-cc4d110ec824d3f05f95b1f705158afc6fb08773.zip
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 <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ghash-generic.c')
0 files changed, 0 insertions, 0 deletions