The logic of set_bitmap() requires that a bitmap fd exists in the
non-cyclic case.

Signed-off-by: Martin Wilck <mwi...@suse.de>
---
 makedumpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index d168dfd..6164468 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -1365,7 +1365,7 @@ open_dump_bitmap(void)
 
        /* Unnecessary to open */
        if (!info->working_dir && !info->flag_reassemble && 
!info->flag_refiltering
-           && !info->flag_sadump && !info->flag_mem_usage)
+           && !info->flag_sadump && !info->flag_mem_usage && info->flag_cyclic)
                return TRUE;
 
        tmpname = getenv("TMPDIR");
-- 
2.9.3


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to