diff options
author | Corentin LABBE <clabbe.montjoie@gmail.com> | 2017-08-14 13:58:54 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-08-22 14:54:54 +0800 |
commit | baf5b752dae2b7c84b3fa5ffb0eb41648d659c09 (patch) | |
tree | 166397fd293adee793366fbbd1177978fdd5ebe7 /drivers/crypto/rockchip/rk3288_crypto.c | |
parent | 249cb0632570302e2c61f900806b92f3fe66783b (diff) |
crypto: cavium - add release_firmware to all return case
Two return case misses to call release_firmware() and so leak some
memory.
This patch create a fw_release label (and so a common error path)
and use it on all return case.
Detected by CoverityScan, CID#1416422 ("Resource Leak")
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/rockchip/rk3288_crypto.c')
0 files changed, 0 insertions, 0 deletions