This will lead to writing a wrong module command line physical memory
address if no command line is actually provided.
This hasn't caused problems so far because hvmloader is the only
consumer of the modules command line, and it's unconditionally set
in that case.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
< HVMLOADER_MODULE_CMDLINE_SIZE);
strncpy(modules_cmdline_start + HVMLOADER_MODULE_CMDLINE_SIZE * index,
cmdline, HVMLOADER_MODULE_CMDLINE_SIZE);
+ modlist[index].cmdline_paddr = modules_cmdline_paddr +
+ HVMLOADER_MODULE_CMDLINE_SIZE * index;
}
- modlist[index].cmdline_paddr =
- modules_cmdline_paddr + HVMLOADER_MODULE_CMDLINE_SIZE * index;
-
start_info->nr_modules++;
}