[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Clear resource structure before using it in allocate_resource().



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1180632346 21600
# Node ID b1b80a14d0238436d997123a09547d6cd0431583
# Parent  c0afc89cda750efb741e60b3ba6b7990512e1e6c
[IA64] Clear resource structure before using it in allocate_resource().

Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r c0afc89cda75 -r b1b80a14d023 
linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c
--- a/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c   Thu May 31 11:18:50 
2007 -0600
+++ b/linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c   Thu May 31 11:25:46 
2007 -0600
@@ -1208,7 +1208,7 @@ xen_ia64_allocate_resource(unsigned long
        struct resource* res;
        int error;
        
-       res = kmalloc(sizeof(*res), GFP_KERNEL);
+       res = kzalloc(sizeof(*res), GFP_KERNEL);
        if (res == NULL)
                return ERR_PTR(-ENOMEM);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.