linux/drivers/crypto/cavium/cpt
Colin Ian King 87aae50af7 crypto: cavium - fix memory leak on info
The object info is being leaked on an error return path, fix this
by setting ret to -ENOMEM and exiting via the request_cleanup path
that will free info.

Detected by CoverityScan, CID#1408439 ("Resource Leak")

Fixes: c694b23329 ("crypto: cavium - Add the Virtual Function driver for CPT")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-11-29 17:33:27 +11:00
..
cpt_common.h crypto: cavium - remove dead MSI-X related define 2017-02-23 20:10:59 +08:00
cpt_hw_types.h
cptpf_main.c crypto: cavium - add release_firmware to all return case 2017-08-22 14:54:54 +08:00
cptpf_mbox.c crypto: cavium - cpt_bind_vq_to_grp could return an error code 2017-02-15 13:23:50 +08:00
cptpf.h crypto: cavium - switch to pci_alloc_irq_vectors 2017-02-23 20:11:00 +08:00
cptvf_algs.c crypto: cavium - make several functions static 2017-07-12 18:38:09 +08:00
cptvf_algs.h crypto: cavium - Remove the individual encrypt/decrypt function for each algorithm 2017-06-19 14:11:49 +08:00
cptvf_main.c crypto: cavium - Downgrade the annoying misc interrupt print from dev_err to dev_dbg 2017-06-19 14:11:48 +08:00
cptvf_mbox.c
cptvf_reqmanager.c crypto: cavium - fix memory leak on info 2017-11-29 17:33:27 +11:00
cptvf.h crypto: cavium - switch to pci_alloc_irq_vectors 2017-02-23 20:11:02 +08:00
Kconfig crypto: cavium - fix Kconfig dependencies 2017-02-15 13:23:50 +08:00
Makefile
request_manager.h