perf, x86: Fix silly bug in data store buffer allocation
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 5 Mar 2010 11:09:29 +0000 (12:09 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:34 +0000 (13:23 +0100)
commit3adaebd69557615c1bf0365ce5e32d93ac7d82af
treea48b45a3647d97a0239ae291827a078e9a2e493a
parent30a813ae035d3e220a89609adce878e045c49547
perf, x86: Fix silly bug in data store buffer allocation

Fix up the ds allocation error path, where we could free @buffer before
we used it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
LKML-Reference: <20100305154128.813452402@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel_ds.c