From: Namhyung Kim Date: Thu, 21 Mar 2013 07:18:48 +0000 (+0900) Subject: perf tools: Handle failure case in trace_report() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~119^2~15^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dce2ce3cc40ece2562a5a83e879b4bfb451476c;p=pandora-kernel.git perf tools: Handle failure case in trace_report() If pevent allocation in read_trace_init() fails, trace_report() will return -1 and *ppevent is set to NULL. Its callers should check this case and handle it properly. This is also a preparation for the removal of *die() calls. Signed-off-by: Namhyung Kim Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1363850332-25297-6-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed