All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 81a204e4 authored by Eduard - Gabriel Munteanu's avatar Eduard - Gabriel Munteanu Committed by Blue Swirl

pc: fix segfault introduced by 3d53f5c3

Commit 3d53f5c3 introduced a segfault by erroneously making fw_cfg a
'void **' and passing it around in different ways.
Signed-off-by: default avatarEduard - Gabriel Munteanu <>
Signed-off-by: default avatarBlue Swirl <>
parent 70c48285
......@@ -818,7 +818,7 @@ void pc_memory_init(ram_addr_t ram_size,
ram_addr_t ram_addr, bios_offset, option_rom_offset;
ram_addr_t below_4g_mem_size, above_4g_mem_size = 0;
int bios_size, isa_bios_size;
void **fw_cfg;
void *fw_cfg;
if (ram_size >= 0xe0000000 ) {
above_4g_mem_size = ram_size - 0xe0000000;
......@@ -893,7 +893,7 @@ void pc_memory_init(ram_addr_t ram_size,
if (linux_boot) {
load_linux(*fw_cfg, kernel_filename, initrd_filename, kernel_cmdline, below_4g_mem_size);
load_linux(fw_cfg, kernel_filename, initrd_filename, kernel_cmdline, below_4g_mem_size);
for (i = 0; i < nb_option_roms; i++) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment