[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:
parent
120b286d3c
commit
5eb1d63f5f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue