This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [linux-2.6.18-xen] Fully initialise watch data structure

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Fully initialise watch data structure in pcifront by using kzalloc.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Feb 2008 06:10:23 -0800
Delivery-date: Thu, 28 Feb 2008 06:10:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Fully initialise watch data structure in pcifront by using kzalloc., Xen patchbot-linux-2.6.18-xen <=