Home
last modified time | relevance | path

Searched hist:"732 b7640" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c732b7640 Sun Nov 15 13:08:07 CST 2020 Corentin Labbe <clabbe@baylibre.com> 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>