Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148907
b: refs/heads/master
c: 98a9c8c
h: refs/heads/master
i:
  148905: c2bb64f
  148903: d044dc9
v: v3
  • Loading branch information
Hidetoshi Seto authored and H. Peter Anvin committed May 28, 2009
1 parent 20772b7 commit 8393db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 61a021a0700c22ee527d73d92f9acb109ff478f8
refs/heads/master: 98a9c8c3ba13dfc3df8e6d2a126d2fa4e4621e9c
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/cpu/mcheck/mce-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
* Andi Kleen
* Ying Huang
*/
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/fs.h>
#include <linux/smp.h>
#include <asm/uaccess.h>
#include <asm/mce.h>

/* Update fake mce registers on current CPU. */
Expand Down Expand Up @@ -93,7 +93,7 @@ static ssize_t mce_write(struct file *filp, const char __user *ubuf,
if (copy_from_user(&m, ubuf, usize))
return -EFAULT;

if (m.cpu >= NR_CPUS || !cpu_online(m.cpu))
if (m.cpu >= num_possible_cpus() || !cpu_online(m.cpu))
return -EINVAL;

dm = kmalloc(sizeof(struct delayed_mce), GFP_KERNEL);
Expand Down

0 comments on commit 8393db0

Please sign in to comment.