commit | 6fae20e891d27308325b8a024ddb4a01c43d5cae | [log] [tgz] |
---|---|---|
author | Changbin Du <[email protected]> | Sat Mar 16 16:05:49 2019 +0800 |
committer | Greg Kroah-Hartman <[email protected]> | Sat Apr 20 09:07:49 2019 +0200 |
tree | 8e56a75abad9c432ead5f477d0fbf239a5959d95 | |
parent | 756e9ca6169ce3d4742ee2339752ecc78b71ad73 [diff] |
perf hist: Add missing map__put() in error case [ Upstream commit cb6186aeffda4d27e56066c79e9579e7831541d3 ] We need to map__put() before returning from failure of sample__resolve_callchain(). Detected with gcc's ASan. Signed-off-by: Changbin Du <[email protected]> Reviewed-by: Jiri Olsa <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Krister Johansen <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt (VMware) <[email protected]> Fixes: 9c68ae98c6f7 ("perf callchain: Reference count maps") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>