Searched hist:baf5b752dae2b7c84b3fa5ffb0eb41648d659c09 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/crypto/cavium/cpt/ |
H A D | cptpf_main.c | diff baf5b752dae2b7c84b3fa5ffb0eb41648d659c09 Mon Aug 14 13:58:54 CEST 2017 Corentin LABBE <clabbe.montjoie@gmail.com> 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>
|