aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2019-02-20 17:54:43 +0100
committerSteven Rostedt (VMware) <[email protected]>2019-02-21 10:35:10 -0500
commit83540fbc8812a580b6ad8f93f4c29e62e417687e (patch)
treebbced260938642e388e780d28245bea212f25934 /tools/perf/scripts/python/export-to-postgresql.py
parentb689269bd1bb7b1bffb01c1d2d212e66b54f2eb2 (diff)
tracing/perf: Use strndup_user() instead of buggy open-coded version
The first version of this method was missing the check for `ret == PATH_MAX`; then such a check was added, but it didn't call kfree() on error, so there was still a small memory leak in the error case. Fix it by using strndup_user() instead of open-coding it. Link: http://lkml.kernel.org/r/[email protected] Cc: Ingo Molnar <[email protected]> Cc: [email protected] Fixes: 0eadcc7a7bc0 ("perf/core: Fix perf_uprobe_init()") Reviewed-by: Masami Hiramatsu <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Jann Horn <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions