oprofile, ARM: Release resources on failure
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Sep 2010 14:52:25 +0000 (16:52 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 11 Oct 2010 17:27:10 +0000 (19:27 +0200)
commit81771974ae49bf79aab60c42eac7a6d730a9ef2b
tree82f6448db358d7850f52516ebab38f90a6f06190
parentad0f7cfaa85fc033523a09ab1f3dd6b8ded3dff5
oprofile, ARM: Release resources on failure

This patch fixes a resource leak on failure, where the
oprofilefs and some counters may not released properly.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: <stable@kernel.org> # .35.x
LKML-Reference: <20100929145225.GJ13563@erda.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/oprofile/oprofile_perf.c