]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
perf probe: Fix to add missed brace around if block
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 12 Aug 2015 21:55:41 +0000 (06:55 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 11 Feb 2020 20:03:29 +0000 (20:03 +0000)
commit 86a76027457633488b0a83d5e2bb944159885605 upstream.

The commit 75186a9b09e4 (perf probe: Fix to show lines of sys_ functions
correctly) introduced a bug by a missed brace around if block. This
fixes to add it.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: 75186a9b09e4 ("perf probe: Fix to show lines of sys_ functions correctly")
Link: http://lkml.kernel.org/r/20150812215541.9088.62425.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
tools/perf/util/dwarf-aux.c

index 3ecd6f1ebe968450a4b4c424d26d0c32c5b3cdef..79ff5209d01262eea41fc8a28146232b3fbb6bab 100644 (file)
@@ -717,7 +717,7 @@ int die_walk_lines(Dwarf_Die *rt_die, line_walk_callback_t callback, void *data)
                        continue;
                }
                /* Filter lines based on address */
-               if (rt_die != cu_die)
+               if (rt_die != cu_die) {
                        /*
                         * Address filtering
                         * The line is included in given function, and
@@ -731,6 +731,7 @@ int die_walk_lines(Dwarf_Die *rt_die, line_walk_callback_t callback, void *data)
                                    decf != dwarf_decl_file(&die_mem))
                                        continue;
                        }
+               }
                /* Get source line */
                fname = dwarf_linesrc(line, NULL, NULL);