From: Chris Samuel Date: Sat, 13 Nov 2010 02:35:06 +0000 (+1100) Subject: perf tools: Catch a few uncheck calloc/malloc's X-Git-Tag: v2.6.38-rc1~490^2~42^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce47dc56a2241dc035160a85bc5e34283cdd622c;p=pandora-kernel.git perf tools: Catch a few uncheck calloc/malloc's There were a few stray calloc()'s and malloc()'s which were not having their return values checked for success. As the calling code either already coped with failure or didn't actually care we just return -ENOMEM at that point. Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Signed-off-by: Chris Samuel LKML-Reference: <4CDDF95A.1050400@csamuel.org> Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed