ia64/linux-2.6.18-xen.hg

changeset 665:748f324a4b2d

pciback: Fix kmalloc() usage to fix build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Sep 10 10:54:08 2008 +0100 (2008-09-10)
parents 888a42f56f65
children c84f326ff58a
files drivers/xen/pciback/conf_space_capability_msi.c
line diff
     1.1 --- a/drivers/xen/pciback/conf_space_capability_msi.c	Wed Sep 10 10:48:22 2008 +0100
     1.2 +++ b/drivers/xen/pciback/conf_space_capability_msi.c	Wed Sep 10 10:54:08 2008 +0100
     1.3 @@ -44,7 +44,7 @@ int pciback_enable_msix(struct pciback_d
     1.4  	if (op->value > SH_INFO_MAX_VEC)
     1.5  		return -EINVAL;
     1.6  
     1.7 -	entries = kmalloc(op->value * sizeof(*entries));
     1.8 +	entries = kmalloc(op->value * sizeof(*entries), GFP_KERNEL);
     1.9  	if (entries == NULL)
    1.10  		return -ENOMEM;
    1.11