]> git.karo-electronics.de Git - mv-sheeva.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)
committerRobert Richter <robert.richter@amd.com>
Tue, 31 Aug 2010 08:26:26 +0000 (10:26 +0200)
commit10f0412f57f2a76a90eff4376f59cbb0a39e4e18
tree6e038c3816b5e1f61a498ed69cd730d5e4e832ef
parent750d857c682f4db60d14722d430c7ccc35070962
oprofile, x86: fix init_sysfs error handling

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.

Cc: stable@kernel.org
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/nmi_int.c