]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/flatload.c
migration/block-dirty-bitmap: move mutex init to dirty_bitmap_mig_init
[mirror_qemu.git] / linux-user / flatload.c
index 66901f39cc5f6bdbb3d576b79d1d0c5c060739b8..8fb448f0bf065e2e7fbcf00db06e6cbaf0c66300 100644 (file)
@@ -441,6 +441,12 @@ static int load_flat_file(struct linux_binprm * bprm,
     indx_len = MAX_SHARED_LIBS * sizeof(abi_ulong);
     indx_len = (indx_len + 15) & ~(abi_ulong)15;
 
+    /*
+     * Alloate the address space.
+     */
+    probe_guest_base(bprm->filename, 0,
+                     text_len + data_len + extra + indx_len);
+
     /*
      * there are a couple of cases here,  the separate code/data
      * case,  and then the fully copied to RAM case which lumps