diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-11-15 19:08:07 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-11-20 14:45:34 +1100 |
commit | 732b764099f651a088fd931d7b8121b6aa84e62e (patch) | |
tree | 084a3a8c60991afe7b906264e746ebae60a60256 /crypto/aegis128-core.c | |
parent | 2e0e386af88429ec28fb9ab4531096a370578e97 (diff) | |
download | lwn-732b764099f651a088fd931d7b8121b6aa84e62e.tar.gz lwn-732b764099f651a088fd931d7b8121b6aa84e62e.zip |
crypto: sun8i-ce - fix two error path's memory leak
This patch fixes the following smatch warnings:
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c:412
sun8i_ce_hash_run() warn: possible memory leak of 'result'
Note: "buf" is leaked as well.
Furthermore, in case of ENOMEM, crypto_finalize_hash_request() was not
called which was an error.
Fixes: 56f6d5aee88d ("crypto: sun8i-ce - support hash algorithms")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aegis128-core.c')
0 files changed, 0 insertions, 0 deletions