diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-07-21 16:42:37 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-08-03 13:52:44 +0800 |
commit | 4757f1715ee63e749594ef98c0631125f3607671 (patch) | |
tree | 71067aada412f91e3077acd8902aa37a4796c78c /crypto/aes_generic.c | |
parent | 3014649037efac090a2c0d806d7f8d0a28a95cb3 (diff) | |
download | linux-crypto-4757f1715ee63e749594ef98c0631125f3607671.tar.gz linux-crypto-4757f1715ee63e749594ef98c0631125f3607671.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/aes_generic.c')
0 files changed, 0 insertions, 0 deletions