From: Davidlohr Bueso Date: Mon, 9 Sep 2013 02:19:14 +0000 (-0700) Subject: perf lock: Return proper code in report_lock_*_event X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~41^2~28^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b33492ade49a223a666e582d0c63566609e7014b;p=pandora-kernel.git perf lock: Return proper code in report_lock_*_event The report_lock_*_event() functions return -1 when lock_stat_findnew(), thread_stat_findnew() or get_seq() return NULL. These functions only return this value when failing to allocate memory, this return -ENOMEM instead. Signed-off-by: Davidlohr Bueso Cc: Aswin Chandramouleeswaran Cc: Frederic Weisbecker Cc: Hitoshi Mitake Cc: Ingo Molnar Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1378693159-8747-3-git-send-email-davidlohr@hp.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed