summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-12-16 14:33:17 +0100
committerIngo Molnar <mingo@kernel.org>2013-12-16 14:33:17 +0100
commit014952270eb9770a41084e74c721e4c07f2306c5 (patch)
tree75460debf66bd187355599a73db0a2bffec5a2f8 /arch
parent319e2e3f63c348a9b66db4667efa73178e18b17d (diff)
parent42139eb356e3384759ca143ae04d82376346eb4c (diff)
downloadop-kernel-dev-014952270eb9770a41084e74c721e4c07f2306c5.zip
op-kernel-dev-014952270eb9770a41084e74c721e4c07f2306c5.tar.gz
Merge tag 'ras_for_3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp into x86/ras
Pull RAS updates from Borislav Petkov: * Add the functionality to override error reporting agents as some machines are sporting a new extended error logging capability which, if done properly in the BIOS, makes a corresponding EDAC module redundant, from Gong Chen. * PCIe AER tracepoint severity levels fix, from Rui Wang. * Error path correction for the mce device init, from Levente Kurusa. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index b3218cd..a389c1d 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -2272,8 +2272,10 @@ static int mce_device_create(unsigned int cpu)
dev->release = &mce_device_release;
err = device_register(dev);
- if (err)
+ if (err) {
+ put_device(dev);
return err;
+ }
for (i = 0; mce_device_attrs[i]; i++) {
err = device_create_file(dev, mce_device_attrs[i]);
OpenPOWER on IntegriCloud