ia64/xen-unstable

changeset 8436:5222e8d456ae

Ensure initrd fields are set to 0 when no initrd is present (by Kevin Tian)
author djm@kirby.fc.hp.com
date Thu Dec 29 15:31:18 2005 -0600 (2005-12-29)
parents 8643b4d778f5
children b4925703b56c
files tools/libxc/xc_linux_build.c
line diff
     1.1 --- a/tools/libxc/xc_linux_build.c	Thu Dec 29 15:21:39 2005 -0600
     1.2 +++ b/tools/libxc/xc_linux_build.c	Thu Dec 29 15:31:18 2005 -0600
     1.3 @@ -397,6 +397,9 @@ static int setup_guest(int xc_handle,
     1.4      {
     1.5          ctxt->initrd.start    = vinitrd_start;
     1.6          ctxt->initrd.size     = initrd_len;
     1.7 +    } else {
     1.8 +        ctxt->initrd.start    = 0;
     1.9 +        ctxt->initrd.size     = 0;
    1.10      }
    1.11      strncpy((char *)ctxt->cmdline, cmdline, IA64_COMMAND_LINE_SIZE);
    1.12      ctxt->cmdline[IA64_COMMAND_LINE_SIZE-1] = '\0';