perf_counter: Fix output-sharing error path
authorIngo Molnar <mingo@elte.hu>
Thu, 3 Sep 2009 16:03:00 +0000 (18:03 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 3 Sep 2009 16:46:23 +0000 (18:46 +0200)
We forget to release the fd in the PERF_FLAG_FD_OUTPUT
error path.

Reorganize the error flow here to be a clean fall-through
logic.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found