From: Guillaume Thouvenin Subject: phys_basetab might be used uninitialized in domain.c Date: Wed, 22 Feb 2006 09:06:21 +0100 Message-ID: <20060222090621.6b580593@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.comxen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, In xen-unstable [changeset 8920], gcc warns me that phys_basetab variable might be used uninitialized in arch/x86/domain.c So is it ok to write: 414 if ( shadow_mode_refcounts(d) ) 415 { 416 if ( !get_page(mfn_to_page(phys_basetab>>PAGE_SHIFT), d) ) 417 { 418 destroy_gdt(v); 419 return -EINVAL; 420 } in arch_set_info_guest() knowing that phys_basetab can be unset at this point. Hope this help, Guillaume