Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95765
b: refs/heads/master
c: 24adf12
h: refs/heads/master
i:
  95763: f69f218
v: v3
  • Loading branch information
Rusty Russell committed May 2, 2008
1 parent 2ccb2bb commit 117e48b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 48e4043d4529523cbc7fa8dd745bd8e2c45ce1d3
refs/heads/master: 24adf12722b4f2800e5b5f0955d57033f0d0c9e5
2 changes: 1 addition & 1 deletion trunk/drivers/lguest/lguest_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static ssize_t read(struct file *file, char __user *user, size_t size,loff_t*o)
static int lg_cpu_start(struct lg_cpu *cpu, unsigned id, unsigned long start_ip)
{
/* We have a limited number the number of CPUs in the lguest struct. */
if (id >= NR_CPUS)
if (id >= ARRAY_SIZE(cpu->lg->cpus))
return -EINVAL;

/* Set up this CPU's id, and pointer back to the lguest struct. */
Expand Down

0 comments on commit 117e48b

Please sign in to comment.