debuggers.hg

diff xen/arch/x86/mtrr/main.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 c23dd7ec1f54 beb0887c54bc
children bbe8541361dd
line diff
     1.1 --- a/xen/arch/x86/mtrr/main.c	Wed Feb 02 09:38:32 2005 +0000
     1.2 +++ b/xen/arch/x86/mtrr/main.c	Wed Feb 02 15:24:31 2005 +0000
     1.3 @@ -136,8 +136,7 @@ static void __init init_table(void)
     1.4  	int i, max;
     1.5  
     1.6  	max = num_var_ranges;
     1.7 -	if ((usage_table = xmalloc(max * sizeof *usage_table))
     1.8 -	    == NULL) {
     1.9 +	if ((usage_table = xmalloc_array(unsigned int, max)) == NULL) {
    1.10  		printk(KERN_ERR "mtrr: could not allocate\n");
    1.11  		return;
    1.12  	}