summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatias Zabaljauregui <zabaljauregui@gmail.com>2009-06-12 22:27:04 -0600
committerRusty Russell <rusty@rustcorp.com.au>2009-06-12 22:27:04 +0930
commitf086122bb6e885f926f935b1418fca3b293375f0 (patch)
tree21f14d50489380e609ecffb61cdc4f5b2f624694 /drivers
parent81b79b01d057f8c5a378c38d2f738775b972934a (diff)
downloadlinux-f086122bb6e885f926f935b1418fca3b293375f0.tar.bz2
lguest: Segment selectors are 16-bit long. Fix lg_cpu.ss1 definition.
If GDT_ENTRIES were every > 256, this could become a problem. Signed-off-by: Matias Zabaljauregui <zabaljauregui at gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/lguest/lg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 573896533ac9..74af503ad63c 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -49,7 +49,7 @@ struct lg_cpu {
u32 cr2;
int ts;
u32 esp1;
- u8 ss1;
+ u16 ss1;
/* Bitmap of what has changed: see CHANGED_* above. */
int changed;