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] pciback: Fix kmalloc() usage to fix b

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] pciback: Fix kmalloc() usage to fix build.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Sep 2008 09:30:09 -0700
Delivery-date: Wed, 10 Sep 2008 09:29:59 -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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] pciback: Fix kmalloc() usage to fix build., Xen patchbot-linux-2.6.18-xen <=