aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorGilad Ben-Yossef <[email protected]>2017-11-09 09:16:09 +0000
committerGreg Kroah-Hartman <[email protected]>2017-11-28 14:36:45 +0100
commitc5f39d07860c35e5e4c63188139465af790f86ce (patch)
tree1c7110deb64e6cb990154ecba93a217614269b05 /tools/perf/scripts/python/call-graph-from-sql.py
parent02d69c0359f7069c626cef6541f94a3a22dc5ed9 (diff)
staging: ccree: fix leak of import() after init()
crypto_ahash_import() may be called either after crypto_ahash_init() or without such call. Right now we always internally call init() as part of import(), thus leaking memory and mappings if the user has already called init() herself. Fix this by only calling init() internally if the state is not already initialized. Fixes: commit 454527d0d94f ("staging: ccree: fix hash import/export") Cc: stable <[email protected]> Signed-off-by: Gilad Ben-Yossef <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions