diff options
author | Will Deacon <[email protected]> | 2010-08-29 14:51:59 -0400 |
---|---|---|
committer | Robert Richter <[email protected]> | 2010-08-31 11:47:50 +0200 |
commit | 979048e1f26190d16b5aea87166177f37e614439 (patch) | |
tree | 28c6e5c6c11343f934249cfdf9cc806f8a587758 /net/unix/sysctl_net_unix.c | |
parent | 2bfc96a127bc1cc94d26bfaa40159966064f9c8c (diff) |
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 <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Robert Richter <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions