perf_counter: Propagate inheritance failures down the fork() path
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 25 May 2009 12:45:27 +0000 (14:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 May 2009 12:55:01 +0000 (14:55 +0200)
commit6ab423e0eaca827fbd201ca4ae7d4f8573a366b2
tree072d227934bf213adf5c0dd022369e14f273dc48
parent771d7cde144d87f2d1fbee4da3c6234d61f7e42a
perf_counter: Propagate inheritance failures down the fork() path

Fail fork() when we fail inheritance for some reason (-ENOMEM most likely).

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090525124600.324656474@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/fork.c
kernel/perf_counter.c