ia64/xen-unstable

changeset 15150:b1b80a14d023

[IA64] Clear resource structure before using it in allocate_resource().

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu May 31 11:25:46 2007 -0600 (2007-05-31)
parents c0afc89cda75
children 7476a0ea8ee4
files linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c	Thu May 31 11:18:50 2007 -0600
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c	Thu May 31 11:25:46 2007 -0600
     1.3 @@ -1208,7 +1208,7 @@ xen_ia64_allocate_resource(unsigned long
     1.4  	struct resource* res;
     1.5  	int error;
     1.6  	
     1.7 -	res = kmalloc(sizeof(*res), GFP_KERNEL);
     1.8 +	res = kzalloc(sizeof(*res), GFP_KERNEL);
     1.9  	if (res == NULL)
    1.10  		return ERR_PTR(-ENOMEM);
    1.11