• Ingo Molnar's avatar
    perf_counter: Robustify counter-free logic · 012b84da
    Ingo Molnar authored
    This fixes a nasty crash and highlights a bug that we were
    freeing failed-fork() counters incorrectly.
    
    (the fix for that will come separately)
    
    [ Impact: fix crashes/lockups with inherited counters ]
    Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    012b84da
perf_counter.c 92.4 KB