]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: amlogic - fix two resources leak
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 8 Nov 2019 09:45:17 +0000 (09:45 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:38 +0000 (09:02 +0800)
commit7ea163e42ad12d2edcd1d4f4405089917d453bad
treecbacac19a2cf7e5e0a5973b643a15162791ccde2
parentc9147b8c46bcd9a570d38aee997e252e24cf1320
crypto: amlogic - fix two resources leak

This patch fixes two resources leak that occur on error path.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1487403 ("RESOURCE_LEAK")
Addresses-Coverity-ID: 1487401 ("Resource leaks")
Fixes: 0e9a1b234cc7 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amlogic/amlogic-gxl-cipher.c