lguest: Segment selectors are 16-bit long. Fix lg_cpu.ss1 definition.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 11:00 am

Gitweb:     http://git.kernel.org/linus/f086122bb6e885f926f935b1418fca3b293375f0
Commit:     f086122bb6e885f926f935b1418fca3b293375f0
Parent:     81b79b01d057f8c5a378c38d2f738775b972934a
Author:     Matias Zabaljauregui <zabaljauregui@gmail.com>
AuthorDate: Fri Jun 12 22:27:04 2009 -0600
Committer:  Rusty Russell <rusty@rustcorp.com.au>
CommitDate: Fri Jun 12 22:27:04 2009 +0930

    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>
---
 drivers/lguest/lg.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 5738965..74af503 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
lguest: Segment selectors are 16-bit long. Fix lg_cpu.ss1 ..., Linux Kernel Mailing ..., (Fri Jun 12, 11:00 am)