Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178750
b: refs/heads/master
c: 3e27249
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Jan 4, 2010
1 parent 98a085c commit 2dcce53
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 741f21e811752b440c505bf0149c4d16e9f3160d
refs/heads/master: 3e27249c84beed1c79d767b350e52ad038db9053
4 changes: 3 additions & 1 deletion trunk/drivers/lguest/segments.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ void load_guest_gdt_entry(struct lg_cpu *cpu, u32 num, u32 lo, u32 hi)
* We assume the Guest has the same number of GDT entries as the
* Host, otherwise we'd have to dynamically allocate the Guest GDT.
*/
if (num >= ARRAY_SIZE(cpu->arch.gdt))
if (num >= ARRAY_SIZE(cpu->arch.gdt)) {
kill_guest(cpu, "too many gdt entries %i", num);
return;
}

/* Set it up, then fix it. */
cpu->arch.gdt[num].a = lo;
Expand Down

0 comments on commit 2dcce53

Please sign in to comment.