ia64/linux-2.6.18-xen.hg

changeset 447:7c04748ed275

Fully initialise watch data structure in pcifront by using kzalloc.

This avoids creating a watch with XBWF_new_thread set spuriously.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Wed Feb 27 16:33:32 2008 +0000 (2008-02-27)
parents c48f54365060
children 10f6aed62763
files drivers/xen/pcifront/xenbus.c
line diff
     1.1 --- a/drivers/xen/pcifront/xenbus.c	Wed Feb 27 13:14:18 2008 +0000
     1.2 +++ b/drivers/xen/pcifront/xenbus.c	Wed Feb 27 16:33:32 2008 +0000
     1.3 @@ -17,7 +17,7 @@ static struct pcifront_device *alloc_pde
     1.4  {
     1.5  	struct pcifront_device *pdev;
     1.6  
     1.7 -	pdev = kmalloc(sizeof(struct pcifront_device), GFP_KERNEL);
     1.8 +	pdev = kzalloc(sizeof(struct pcifront_device), GFP_KERNEL);
     1.9  	if (pdev == NULL)
    1.10  		goto out;
    1.11