linux/drivers/staging/ccree
Colin Ian King bd12b21ec3 staging: ccree: fix memory leaks in cc_ivgen_init
The current error exit path in function cc_ivgen_init via label
'out' free's resources from the drvdata->ivgen_handle context.
However, drvdata->ivgen_handle has not been assigned to the
context ivgen_ctx at this point, so the resources are not freed.
Fix this by setting drvdata->ivgen_handle to ivgen_ctx as early
as possible so that the clean up error exit return path can free
the resources.

Detected by CoveritScan, CID#1463795 ("Resource leak")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-15 15:50:35 +01:00
..
cc_aead.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_aead.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_buffer_mgr.c staging: ccree: remove unneeded includes 2018-01-09 16:01:35 +01:00
cc_buffer_mgr.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_cipher.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_cipher.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_crypto_ctx.h staging: ccree: fold reg common defines into driver 2018-01-08 16:27:22 +01:00
cc_debugfs.c staging: ccree: add missing include 2018-01-09 16:02:18 +01:00
cc_debugfs.h staging: ccree: make stub function static inline 2018-01-09 16:02:18 +01:00
cc_driver.c staging: ccree: remove redundant dev_err call in init_cc_resources() 2018-01-15 15:50:35 +01:00
cc_driver.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_fips.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_fips.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_hash.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_hash.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_host_regs.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_hw_queue_defs.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_ivgen.c staging: ccree: fix memory leaks in cc_ivgen_init 2018-01-15 15:50:35 +01:00
cc_ivgen.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_kernel_regs.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_lli_defs.h staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
cc_pm.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_pm.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_request_mgr.c staging: ccree: don't break lines unnecessarily 2018-01-15 15:50:35 +01:00
cc_request_mgr.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_sram_mgr.c staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
cc_sram_mgr.h staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
Kconfig staging: ccree: SPDXify driver 2018-01-08 16:26:15 +01:00
Makefile staging: ccree: use a consistent file naming convention 2018-01-09 16:00:07 +01:00
TODO staging: ccree: update TODO 2018-01-08 16:29:39 +01:00