WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] msi-xen: Fix get_msi_dev_pirq_list().

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] msi-xen: Fix get_msi_dev_pirq_list().
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 08 Oct 2008 15:00:08 -0700
Delivery-date: Wed, 08 Oct 2008 14:59:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1223457625 -3600
# Node ID c3a007862994f3225e35c1608b3ebfc63d08a66d
# Parent  39a4dda735d373195f57f56e30f614cb564184da
msi-xen: Fix get_msi_dev_pirq_list().

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/pci/msi-xen.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 39a4dda735d3 -r c3a007862994 drivers/pci/msi-xen.c
--- a/drivers/pci/msi-xen.c     Fri Oct 03 09:39:37 2008 +0100
+++ b/drivers/pci/msi-xen.c     Wed Oct 08 10:20:25 2008 +0100
@@ -67,7 +67,7 @@ static struct msi_dev_list *get_msi_dev_
        }
 
        /* Has not allocate msi_dev until now. */
-       ret = kmalloc(sizeof(struct msi_dev_list), GFP_ATOMIC);
+       ret = kzalloc(sizeof(struct msi_dev_list), GFP_ATOMIC);
 
        /* Failed to allocate msi_dev structure */
        if ( !ret ) {
@@ -75,6 +75,7 @@ static struct msi_dev_list *get_msi_dev_
                return NULL;
        }
 
+       ret->dev = dev;
        spin_lock_init(&ret->pirq_list_lock);
        INIT_LIST_HEAD(&ret->pirq_list_head);
        list_add_tail(&ret->list, &msi_dev_head);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] msi-xen: Fix get_msi_dev_pirq_list()., Xen patchbot-linux-2.6.18-xen <=