]> git.baikalelectronics.ru Git - kernel.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)
commit22900f0060aac650390e82c9a0cb566720b1e2ae
tree6e038c3816b5e1f61a498ed69cd730d5e4e832ef
parent3a6fe4596e4040da4342a398da96b470fa57a0c5
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