[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] pciback: Fix kmalloc() usage to fix build.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1221040448 -3600
# Node ID 748f324a4b2d62d89fe40c4aa52861977e1a2cae
# Parent  888a42f56f65e96716d80c2c13cd35ee645f666a
pciback: Fix kmalloc() usage to fix build.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/pciback/conf_space_capability_msi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 888a42f56f65 -r 748f324a4b2d 
drivers/xen/pciback/conf_space_capability_msi.c
--- a/drivers/xen/pciback/conf_space_capability_msi.c   Wed Sep 10 10:48:22 
2008 +0100
+++ b/drivers/xen/pciback/conf_space_capability_msi.c   Wed Sep 10 10:54:08 
2008 +0100
@@ -44,7 +44,7 @@ int pciback_enable_msix(struct pciback_d
        if (op->value > SH_INFO_MAX_VEC)
                return -EINVAL;
 
-       entries = kmalloc(op->value * sizeof(*entries));
+       entries = kmalloc(op->value * sizeof(*entries), GFP_KERNEL);
        if (entries == NULL)
                return -ENOMEM;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.