From: Will Deacon Date: Sun, 29 Aug 2010 18:51:59 +0000 (-0400) Subject: oprofile: don't call arch exit code from init code on failure X-Git-Tag: v2.6.37-rc1~214^2~18^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979048e1f26190d16b5aea87166177f37e614439;p=pandora-kernel.git oprofile: don't call arch exit code from init code on failure oprofile_init calls oprofile_arch_init to initialise the architecture-specific backend code. If this backend code returns failure, oprofile_arch_exit is called immediately, making it difficult to allocate and free resources correctly. This patch removes the oprofile_arch_exit call from oprofile_init, meaning that all architectures must ensure that oprofile_arch_init cleans up any mess it's made before returning an error. As far as I can tell, this only affects the code for ARM. Cc: Robert Richter Cc: Matt Fleming Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Will Deacon Signed-off-by: Robert Richter --- Reading git-diff-tree failed