ia64/linux-2.6.18-xen.hg

changeset 690:c3a007862994

msi-xen: Fix get_msi_dev_pirq_list().

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Oct 08 10:20:25 2008 +0100 (2008-10-08)
parents 39a4dda735d3
children 1ab88d39e2c7
files drivers/pci/msi-xen.c
line diff
     1.1 --- a/drivers/pci/msi-xen.c	Fri Oct 03 09:39:37 2008 +0100
     1.2 +++ b/drivers/pci/msi-xen.c	Wed Oct 08 10:20:25 2008 +0100
     1.3 @@ -67,7 +67,7 @@ static struct msi_dev_list *get_msi_dev_
     1.4  	}
     1.5  
     1.6  	/* Has not allocate msi_dev until now. */
     1.7 -	ret = kmalloc(sizeof(struct msi_dev_list), GFP_ATOMIC);
     1.8 +	ret = kzalloc(sizeof(struct msi_dev_list), GFP_ATOMIC);
     1.9  
    1.10  	/* Failed to allocate msi_dev structure */
    1.11  	if ( !ret ) {
    1.12 @@ -75,6 +75,7 @@ static struct msi_dev_list *get_msi_dev_
    1.13  		return NULL;
    1.14  	}
    1.15  
    1.16 +	ret->dev = dev;
    1.17  	spin_lock_init(&ret->pirq_list_lock);
    1.18  	INIT_LIST_HEAD(&ret->pirq_list_head);
    1.19  	list_add_tail(&ret->list, &msi_dev_head);