aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@hp.com>2006-06-06 10:36:27 -0600
committerTony Luck <tony.luck@intel.com>2006-06-21 14:32:25 -0700
commit5eb1d63f5fc8455269c2756223b3cf3779fd2f7a (patch)
tree169d7791754f75b970d0b7e8d3c921a8cf59919b /arch/ia64
parent120b286d3c94a4e59fdb8069d42e8d49ea468ffd (diff)
[IA64] sanity check reserved region usage
One more trivial, stand-alone patch from the Xen/ia64 review. Sanity check usage of the reserved region numbers. Signed-off-by: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index e4dfda1eb7d..6dba2d63f24 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -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);
}