]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Catch a few uncheck calloc/malloc's
authorChris Samuel <chris@csamuel.org>
Sat, 13 Nov 2010 02:35:06 +0000 (13:35 +1100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Dec 2010 14:52:35 +0000 (12:52 -0200)
commit54538774be132b7a58990269d87ec4adbab3fab8
treed9404df9d3ca0ddacdd8faae791ece27206dece4
parent7fe6dfb5f20cfaaf63ed93d23c46dcc985728194
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 <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Chris Samuel <chris@csamuel.org>
LKML-Reference: <4CDDF95A.1050400@csamuel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kmem.c
tools/perf/builtin-lock.c
tools/perf/builtin-sched.c
tools/perf/builtin-timechart.c
tools/perf/util/header.c