]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - Fix memory leak of pad
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Apr 2021 15:18:27 +0000 (16:18 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Apr 2021 07:45:13 +0000 (17:45 +1000)
commit74fabbb1f08c7e97bc14efb15565e1dca490fc70
tree6a4e3f53cb5a74a25631cfb60511ac3f70b5083b
parent79efe5db008a96d6db3d72227320ba326313189a
crypto: sun8i-ss - Fix memory leak of pad

It appears there are several failure return paths that don't seem
to be free'ing pad. Fix these.

Addresses-Coverity: ("Resource leak")
Fixes: 4b2f708049b2 ("crypto: sun8i-ss - support hash algorithms")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c