debuggers.hg

diff xen/arch/x86/mtrr/generic.c @ 3658:0ef6e8e6e85d

bitkeeper revision 1.1159.212.71 (4200f0afX_JumfbEHQex6TdFENULMQ)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Feb 02 15:24:31 2005 +0000 (2005-02-02)
parents e17a946c7a91 beb0887c54bc
children bbe8541361dd
line diff
     1.1 --- a/xen/arch/x86/mtrr/generic.c	Wed Feb 02 09:38:32 2005 +0000
     1.2 +++ b/xen/arch/x86/mtrr/generic.c	Wed Feb 02 15:24:31 2005 +0000
     1.3 @@ -52,7 +52,8 @@ void __init get_mtrr_state(void)
     1.4  	unsigned lo, dummy;
     1.5  
     1.6  	if (!mtrr_state.var_ranges) {
     1.7 -		mtrr_state.var_ranges = xmalloc(num_var_ranges * sizeof (struct mtrr_var_range));
     1.8 +		mtrr_state.var_ranges = xmalloc_array(struct mtrr_var_range,
     1.9 +						  num_var_ranges);
    1.10  		if (!mtrr_state.var_ranges)
    1.11  			return;
    1.12  	}