oprofile, x86: fix init_sysfs error handling
authorRobert Richter <robert.richter@amd.com>
Mon, 30 Aug 2010 08:56:18 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:50 +0000 (13:17 -0700)
commitb250d8d2d7b7997252f20d661481c1335878a214
treec892ad4734e3862cd690dc354c87a6e9075368f7
parentf4db115e77b11a8ff22bcd9a3900f03d396a7a53
oprofile, x86: fix init_sysfs error handling

commit 10f0412f57f2a76a90eff4376f59cbb0a39e4e18 upstream.

On failure init_sysfs() might not properly free resources. The error
code of the function is not checked. And, when reinitializing the exit
function might be called twice. This patch fixes all this.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/oprofile/nmi_int.c