[Buildroot] [PATCH 6/7] package/perf: add patch to prevent crash on empty history buffer
Steven Noonan
steven at uplinklabs.net
Wed Mar 18 21:43:02 UTC 2015
Signed-off-by: Steven Noonan <steven at uplinklabs.net>
---
package/perf/0002-fix-crash-on-empty-buffer.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 package/perf/0002-fix-crash-on-empty-buffer.patch
diff --git a/package/perf/0002-fix-crash-on-empty-buffer.patch b/package/perf/0002-fix-crash-on-empty-buffer.patch
new file mode 100644
index 0000000..b8383cf
--- /dev/null
+++ b/package/perf/0002-fix-crash-on-empty-buffer.patch
@@ -0,0 +1,11 @@
+--- a/tools/perf/ui/browsers/hists.c
++++ b/tools/perf/ui/browsers/hists.c
+@@ -1059,7 +1059,7 @@ do_offset:
+ }
+ first = false;
+ }
+- } else {
++ } else if (nd) {
+ browser->top = nd;
+ h = rb_entry(nd, struct hist_entry, rb_node);
+ h->row_offset = 0;
--
2.3.3
More information about the buildroot
mailing list