[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>
This commit is contained in:
Alex Williamson 2006-06-06 10:36:27 -06:00 committed by Tony Luck
parent 120b286d3c
commit 5eb1d63f5f

View file

@ -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);
}