Skip to content

Commit

Permalink
Merge tag 'mce-fix-for-3.4' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/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
  • Loading branch information
torvalds committed Apr 4, 2012
2 parents 36bbffc + ec3e82d commit 7114a72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/edac/mce_amd.c
Expand Up @@ -754,9 +754,7 @@ static int __init mce_amd_init(void)
if (c->x86_vendor != X86_VENDOR_AMD)
return 0;

if ((c->x86 < 0xf || c->x86 > 0x12) &&
(c->x86 != 0x14 || c->x86_model > 0xf) &&
(c->x86 != 0x15 || c->x86_model > 0xf))
if (c->x86 < 0xf || c->x86 > 0x15)
return 0;

fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL);
Expand Down Expand Up @@ -797,7 +795,7 @@ static int __init mce_amd_init(void)
break;

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);
return -EINVAL;
}
Expand Down

0 comments on commit 7114a72

Please sign in to comment.