From: Frederik Deweerdt Date: Mon, 14 Jan 2013 19:47:17 +0000 (-0500) Subject: perf annotate browser: Fix segfault when drawing out-of-bounds jumps X-Git-Tag: v3.9-rc1~173^2~13^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865c66c4183aab1d12522ca3ad3a3339d2437e5c;p=pandora-kernel.git perf annotate browser: Fix segfault when drawing out-of-bounds jumps Factorize jump sanity checks from mark_jump_targets() and draw_current_jump() in an is_valid_jump() function. This fixes a segfault when moving the cursor over an invalid jump. Signed-off-by: Frederik Deweerdt Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20130114194716.GA4973@ks398093.ip-192-95-24.net [ committer note: Make it a disasm_line method ] Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed