Skip to contentSkip to conversation

phys_basetab might be used uninitialized in domain.c

DISCUSSION Guillaume Thouvenin 1 participant 1 message Feb 22, 2006

lore
Share & tools
lore
#0 lore raw

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