All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sanity check reserved region usage
@ 2006-06-06 16:36 Alex Williamson
  0 siblings, 0 replies; only message in thread
From: Alex Williamson @ 2006-06-06 16:36 UTC (permalink / raw)
  To: linux-ia64


   One more trivial, stand-alone patch from the Xen/ia64 review.  Sanity
check usage of the reserved region numbers.  Thanks,

	Alex

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---

diff -r d349717b8dc8 arch/ia64/kernel/setup.c
--- a/arch/ia64/kernel/setup.c	Tue Jun 06 01:00:10 2006 +0000
+++ b/arch/ia64/kernel/setup.c	Tue Jun 06 10:34:18 2006 -0600
@@ -260,6 +260,7 @@ reserve_memory (void)
 	n++;
 
 	num_rsvd_regions = n;
+	BUG_ON(IA64_MAX_RSVD_REGIONS + 1 < n);
 
 	sort_regions(rsvd_region, num_rsvd_regions);
 }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-06 16:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06 16:36 [PATCH] sanity check reserved region usage Alex Williamson

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.