]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
Fully initialise watch data structure in pcifront by using kzalloc.
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 1 Mar 2008 09:27:47 +0000 (09:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 1 Mar 2008 09:27:47 +0000 (09:27 +0000)
This avoids creating a watch with XBWF_new_thread set spuriously.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
linux-2.6.18-xen changeset:   447:7c04748ed275531734d24ba40261143c77acdcb8
linux-2.6.18-xen date:        Wed Feb 27 16:33:32 2008 +0000

linux-2.6-xen-sparse/drivers/xen/pcifront/xenbus.c

index 538ca0db0c5921376bc601f7aa7026e43f6f34d2..ff921bcc5da5bfd0d0f15207c960218f1f671d5a 100644 (file)
@@ -17,7 +17,7 @@ static struct pcifront_device *alloc_pdev(struct xenbus_device *xdev)
 {
        struct pcifront_device *pdev;
 
-       pdev = kmalloc(sizeof(struct pcifront_device), GFP_KERNEL);
+       pdev = kzalloc(sizeof(struct pcifront_device), GFP_KERNEL);
        if (pdev == NULL)
                goto out;