[PATCH] sanity check reserved region usage

From: Alex Williamson <alex.williamson_at_hp.com>
Date: 2006-06-07 02:36:27
   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);
 }


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jun 07 02:37:04 2006

This archive was generated by hypermail 2.1.8 : 2006-06-07 02:37:13 EST