[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] Fully initialise watch data structure in pcifront by using kzalloc.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1204130012 0 # Node ID 7c04748ed275531734d24ba40261143c77acdcb8 # Parent c48f543650603e4ba7227925c6b60f2ea6778242 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@xxxxxxxxxx> --- drivers/xen/pcifront/xenbus.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r c48f54365060 -r 7c04748ed275 drivers/xen/pcifront/xenbus.c --- a/drivers/xen/pcifront/xenbus.c Wed Feb 27 13:14:18 2008 +0000 +++ b/drivers/xen/pcifront/xenbus.c Wed Feb 27 16:33:32 2008 +0000 @@ -17,7 +17,7 @@ static struct pcifront_device *alloc_pde { 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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |