diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2019-03-29 14:09:55 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-08 14:36:16 +0800 |
commit | a2e9cc3199518db7b7fa5af83d4e215ab474bbb7 (patch) | |
tree | 41a9f4a31132df735ae3eb2f343c8ddd20ff29b0 /crypto/aegis128l.c | |
parent | a6cebd68adf4092573bcd51209bce9e0631bad7a (diff) | |
download | linux-crypto-a2e9cc3199518db7b7fa5af83d4e215ab474bbb7.tar.gz linux-crypto-a2e9cc3199518db7b7fa5af83d4e215ab474bbb7.zip |
crypto: scompress - return proper error code for allocation failure
If scomp_acomp_comp_decomp() fails to allocate memory for the
destination then we never copy back the data we compressed.
It is probably best to return an error code instead 0 in case of
failure.
I haven't found any user that is using acomp_request_set_params()
without the `dst' buffer so there is probably no harm.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aegis128l.c')
0 files changed, 0 insertions, 0 deletions