Hi.

This patch fixes the bitmap of ELF dumpfile for excluding free pages.

Thanks
Ken'ichi Ohmichi

diff -puN makedumpfile.org/makedumpfile.c makedumpfile/makedumpfile.c
--- makedumpfile.org/makedumpfile.c     2006-10-04 16:38:07.000000000 +0900
+++ makedumpfile/makedumpfile.c 2006-10-04 16:39:43.000000000 +0900
@@ -2258,13 +2258,14 @@ create_dump_bitmap(struct DumpInfo *info
        if (!write_cache_bufsz(&bm2))
                goto out;
 
-       if (info->flag_elf_dumpfile && !create_contig_bitmap(info))
-               goto out;
-
        if (info->flag_exclude_free)
                if (!exclude_free_page(info, &bm2, &bm3))
                        goto out;
 
+       if (info->flag_elf_dumpfile)
+               if (!create_contig_bitmap(info))
+                       goto out;
+
        if (page_cache != NULL)
                free(page_cache);
        free(buf);
_

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to