]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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:36:31 +0000 (13:36 -0700)
commitad8096c8a02ca8340cdeb34ab0f368c97adffd1f
treebc4b52fcafc9e80cbd467c0219f9313c335fc51b
parent3f0cfc091f8593dc2ccb282d8155225fd56b03f1
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