diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-01-12 16:10:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-15 15:50:35 +0100 |
| commit | bd12b21ec3a20818db229aea67526f3ed6bc096d (patch) | |
| tree | bb92b5e22f67004a2539fde2174deee8b1570a0a /tools/perf/scripts/python/netdev-times.py | |
| parent | staging: ccree: remove redundant dev_err call in init_cc_resources() (diff) | |
| download | linux-bd12b21ec3a20818db229aea67526f3ed6bc096d.tar.gz linux-bd12b21ec3a20818db229aea67526f3ed6bc096d.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
