From: Kip Macy Subject: do_set_gdt Date: Fri, 27 Feb 2004 21:20:18 -0800 (PST) Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040226205052.Q13979@demos.bsdclusters.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Given that you that the first 256 GDT entries aren't reserved and you explicitly state why, shouldn't the following check: if ( (entries <= LAST_RESERVED_GDT_ENTRY) || (entries > 8192) ) return -EINVAL; be: if ( (entries > FIRST_RESERVED_GDT_ENTRY && entries <= LAST_RESERVED_GDT_ENTRY) || (entries > 8192) ) return -EINVAL; Thanks. -Kip ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click