oprofile, ARM: Release resources on failure
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Sep 2010 14:52:25 +0000 (16:52 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 30 Sep 2010 07:14:25 +0000 (09:14 +0200)
commit98d943b02f6f1b57787ff1aa6f34d019a407e3ee
tree164e086eae181e38b7ab25751f0b05928a4c2366
parentc7a27aa4652c63172489a73f3961455650a79a7f
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>
arch/arm/oprofile/common.c