[RFC PATCH 01/10] Move page flags setup for old kernels after debuginfo initialization

HATAYAMA Daisuke d.hatayama at jp.fujitsu.com
Thu Jun 28 13:38:05 EDT 2012


The hard coded values need to be used only if the corresponding values
are not specified by debuginfo. So it should be done after debuginfo
initialization.

Signed-off-by: HATAYAMA Daisuke <d.hatayama at jp.fujitsu.com>
---

 makedumpfile.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index d024e95..a6b3de7 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -2643,8 +2643,6 @@ initial(void)
 		debug_info = TRUE;
 	}
 
-	if (!get_value_for_old_linux())
-		return FALSE;
 out:
 	if (!info->page_size) {
 		/*
@@ -2706,6 +2704,9 @@ out:
 			return FALSE;
 	}
 
+	if (!get_value_for_old_linux())
+		return FALSE;
+
 	return TRUE;
 }
 




More information about the kexec mailing list