From: Namhyung Kim Date: Fri, 20 Jan 2012 01:12:45 +0000 (+0900) Subject: perf: Don't call release_callchain_buffers() if allocation fails X-Git-Tag: v3.3-rc2~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd45c15f13e754f3c106427e857310f3e0813951;p=pandora-kernel.git perf: Don't call release_callchain_buffers() if allocation fails When alloc_callchain_buffers() fails, it frees all of entries before return. In addition, calling the release_callchain_buffers() will cause a NULL pointer dereference since callchain_cpu_entries is not set. Signed-off-by: Namhyung Kim Acked-by: Frederic Weisbecker Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo Link: http://lkml.kernel.org/r/1327021966-27688-1-git-send-email-namhyung.kim@lge.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed