All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix valid_memory_range region merging
@ 2007-04-26  6:50 Michael Neuling
  2007-04-26  7:17 ` Simon Horman
  2008-02-26  2:29 ` Simon Horman
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Neuling @ 2007-04-26  6:50 UTC (permalink / raw)
  To: kexec, horms

Check the next region we are including is type RANGE_RAM as well.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
I've not actually seen this cause a problem, but it looks wrong.  We
should probably merge regions properly and solve this problem for real. 

 kexec/kexec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: kexec-tools-testing/kexec/kexec.c
===================================================================
--- kexec-tools-testing.orig/kexec/kexec.c
+++ kexec-tools-testing/kexec/kexec.c
@@ -96,7 +96,8 @@ int valid_memory_range(struct kexec_info
 		mstart = info->memory_range[i].start;
 		mend = info->memory_range[i].end;
 		if (i < info->memory_ranges - 1
-		    && mend == info->memory_range[i+1].start)
+		    && mend == info->memory_range[i+1].start
+		    && info->memory_range[i+1].type == RANGE_RAM)
 			mend = info->memory_range[i+1].end;
 
 		/* Check to see if we are fully contained */

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-26  9:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26  6:50 [PATCH] fix valid_memory_range region merging Michael Neuling
2007-04-26  7:17 ` Simon Horman
2008-02-26  2:29 ` Simon Horman
2008-02-26  9:29   ` Michael Neuling
2008-02-26  9:57     ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.