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] [xen-3.1-testing] Fully initialise watch data structure

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] Fully initialise watch data structure in pcifront by using kzalloc.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 10:10:26 -0800
Delivery-date: Mon, 03 Mar 2008 10:10:22 -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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204363667 0
# Node ID 15552e308f0b777d805cfb145d928b945c17ff82
# Parent  347ccfd94d491ada99445a5432b730dcba4f265d
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>
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 |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 347ccfd94d49 -r 15552e308f0b 
--- a/linux-2.6-xen-sparse/drivers/xen/pcifront/xenbus.c        Sat Mar 01 
09:27:10 2008 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/pcifront/xenbus.c        Sat Mar 01 
09:27:47 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] [xen-3.1-testing] Fully initialise watch data structure in pcifront by using kzalloc., Xen patchbot-3.1-testing <=