diff options
author | Ravi Bangoria <ravi.bangoria@linux.ibm.com> | 2019-06-11 08:31:09 +0530 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2020-04-20 19:47:05 +0900 |
commit | e181eaf6143665695731c1697a5c7e699f4bcbf0 (patch) | |
tree | e45957b4dd124e784934c360aa2f6e5737102758 | |
parent | b24be89f3bf7e4721de4deef8e3c40a4e8aba03d (diff) | |
download | linux-rpi3-e181eaf6143665695731c1697a5c7e699f4bcbf0.tar.gz linux-rpi3-e181eaf6143665695731c1697a5c7e699f4bcbf0.tar.bz2 linux-rpi3-e181eaf6143665695731c1697a5c7e699f4bcbf0.zip |
perf version: Fix segfault due to missing OPT_END()
'perf version' on powerpc segfaults when used with non-supported
option:
# perf version -a
Segmentation fault (core dumped)
Fix this.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Tested-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20190611030109.20228-1-ravi.bangoria@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: cherry-pick mainline commit 916c31fff946 to fix possible seg.fault in Tizen armv7l]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: If19720350e2992d1f5e58711f1f708a4d4ec5683
-rw-r--r-- | tools/perf/builtin-version.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c index 50df168be326..b02c96104640 100644 --- a/tools/perf/builtin-version.c +++ b/tools/perf/builtin-version.c @@ -19,6 +19,7 @@ static struct version version; static struct option version_options[] = { OPT_BOOLEAN(0, "build-options", &version.build_options, "display the build options"), + OPT_END(), }; static const char * const version_usage[] = { |