Browse Source

[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>
Alex Williamson 19 years ago
parent
commit
5eb1d63f5f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/ia64/kernel/setup.c

+ 1 - 0
arch/ia64/kernel/setup.c

@@ -260,6 +260,7 @@ reserve_memory (void)
 	n++;
 	n++;
 
 
 	num_rsvd_regions = n;
 	num_rsvd_regions = n;
+	BUG_ON(IA64_MAX_RSVD_REGIONS + 1 < n);
 
 
 	sort_regions(rsvd_region, num_rsvd_regions);
 	sort_regions(rsvd_region, num_rsvd_regions);
 }
 }