aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2015-10-22 22:32:41 +0200
committerJarkko Sakkinen <[email protected]>2015-11-09 17:52:55 +0200
commiteb8ed1eb9a158c460d10205eaff71fd4ac67c160 (patch)
treec42ea86d67926552c79f43e17f6ec831fb8bf8b4 /tools/perf/scripts/python/bin/stackcollapse-record
parent14b5c1c9159bf6f109b667d31da82859d8c8cdcd (diff)
TPM: Avoid reference to potentially freed memory
Reference to the 'np' node is dropped before dereferencing the 'sizep' and 'basep' pointers, which could by then point to junk if the node has been freed. Refactor code to call 'of_node_put' later. Fixes: c5df39262dd5 ("drivers/char/tpm: Add securityfs support for event log") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]> Acked-by: Peter Huewe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions