Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227319
b: refs/heads/master
c: 1b07ca4
h: refs/heads/master
i:
  227317: 44fef10
  227315: 80f07e6
  227311: 0f18d8d
v: v3
  • Loading branch information
Borislav Petkov committed Jan 7, 2011
1 parent 8e51207 commit 35b6b1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa7ae8cc8c88c0679eab24c5a1b5d3b134a5f542
refs/heads/master: 1b07ca47ff2fbffbe09d8b0a0a25d8747a3cdcae
9 changes: 5 additions & 4 deletions trunk/drivers/edac/mce_amd_inj.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj,
return -EINVAL;
}

if (value > 5) {
printk(KERN_ERR "Non-existant MCE bank: %lu\n", value);
return -EINVAL;
}
if (value > 5)
if (boot_cpu_data.x86 != 0x15 || value > 6) {
printk(KERN_ERR "Non-existant MCE bank: %lu\n", value);
return -EINVAL;
}

i_mce.bank = value;

Expand Down

0 comments on commit 35b6b1e

Please sign in to comment.