Skip to content

Commit

Permalink
[IA64] sanity check reserved region usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Williamson authored and Tony Luck committed Jun 21, 2006
1 parent 120b286 commit 5eb1d63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/ia64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5eb1d63

Please sign in to comment.