summaryrefslogtreecommitdiff
path: root/tools/lib/api
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-05-31 16:06:15 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-06-03 20:53:46 +0300
commit946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d (patch)
tree60e3f662d5308fc8fa69028e2868df2247c771ed /tools/lib/api
parent90525176d71995ffde2d0c532f2758304c666a08 (diff)
downloadlinux-946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d.tar.xz
perf evlist: Fix alloc_mmap() failure path
If zalloc fail, setting evlist->mmap[i].fd is unsafe and perf_evlist__alloc_mmap() should bail out right after that. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: He Kuang <hekuang@huawei.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Fixes: d4c6fb36ac2c ("perf evsel: Record fd into perf_mmap") Link: http://lkml.kernel.org/r/1464699975-230440-1-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api')
0 files changed, 0 insertions, 0 deletions