[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] msi-xen: Fix get_msi_dev_pirq_list().
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |