Commit 7114a72f authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'mce-fix-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp

Pull MCE fixlet from Borislav Petkov:
 "One fix which makes MCE decoding much more "liberal" wrt families."

* tag 'mce-fix-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
  MCE, AMD: Drop too granulary family model checks
parents 36bbffc0 ec3e82d6
...@@ -754,9 +754,7 @@ static int __init mce_amd_init(void) ...@@ -754,9 +754,7 @@ static int __init mce_amd_init(void)
if (c->x86_vendor != X86_VENDOR_AMD) if (c->x86_vendor != X86_VENDOR_AMD)
return 0; return 0;
if ((c->x86 < 0xf || c->x86 > 0x12) && if (c->x86 < 0xf || c->x86 > 0x15)
(c->x86 != 0x14 || c->x86_model > 0xf) &&
(c->x86 != 0x15 || c->x86_model > 0xf))
return 0; return 0;
fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL); fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL);
...@@ -797,7 +795,7 @@ static int __init mce_amd_init(void) ...@@ -797,7 +795,7 @@ static int __init mce_amd_init(void)
break; break;
default: default:
printk(KERN_WARNING "Huh? What family is that: %d?!\n", c->x86); printk(KERN_WARNING "Huh? What family is it: 0x%x?!\n", c->x86);
kfree(fam_ops); kfree(fam_ops);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment