diff options
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/mce_amd_inj.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/edac/mce_amd_inj.c b/drivers/edac/mce_amd_inj.c index 39faded3cadd..733a7e7a8d6f 100644 --- a/drivers/edac/mce_amd_inj.c +++ b/drivers/edac/mce_amd_inj.c | |||
@@ -88,10 +88,11 @@ static ssize_t edac_inject_bank_store(struct kobject *kobj, | |||
88 | return -EINVAL; | 88 | return -EINVAL; |
89 | } | 89 | } |
90 | 90 | ||
91 | if (value > 5) { | 91 | if (value > 5) |
92 | printk(KERN_ERR "Non-existant MCE bank: %lu\n", value); | 92 | if (boot_cpu_data.x86 != 0x15 || value > 6) { |
93 | return -EINVAL; | 93 | printk(KERN_ERR "Non-existant MCE bank: %lu\n", value); |
94 | } | 94 | return -EINVAL; |
95 | } | ||
95 | 96 | ||
96 | i_mce.bank = value; | 97 | i_mce.bank = value; |
97 | 98 | ||