commit | baf5b752dae2b7c84b3fa5ffb0eb41648d659c09 | [log] [tgz] |
---|---|---|
author | Corentin LABBE <clabbe.montjoie@gmail.com> | Mon Aug 14 13:58:54 2017 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Tue Aug 22 14:54:54 2017 +0800 |
tree | 166397fd293adee793366fbbd1177978fdd5ebe7 | |
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>