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] [xen-unstable] ioemu: Add check for mapping MSI pirqs.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] ioemu: Add check for mapping MSI pirqs.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 03 Jul 2008 06:30:11 -0700
Delivery-date: Thu, 03 Jul 2008 06:30:05 -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 1214988318 -3600
# Node ID dd3b693dd39aae7c6a03c8ced33679ba14d76043
# Parent  0076f6691b092d586615db830c25e01773c9fb81
ioemu: Add check for mapping MSI pirqs.
From: Haitao Shan <haitao.shan@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/ioemu/hw/pt-msi.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 0076f6691b09 -r dd3b693dd39a tools/ioemu/hw/pt-msi.c
--- a/tools/ioemu/hw/pt-msi.c   Wed Jul 02 09:44:09 2008 +0100
+++ b/tools/ioemu/hw/pt-msi.c   Wed Jul 02 09:45:18 2008 +0100
@@ -94,6 +94,13 @@ static int pt_msi_setup(struct pt_dev *d
         PT_LOG("error map msi\n");
         return -1;
     }
+
+    if ( pirq < 0 )
+    {
+        PT_LOG("invalid pirq number\n");
+        return -1;
+    }
+
     dev->msi->pirq = pirq;
     PT_LOG("msi mapped with pirq %x\n", pirq);
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] ioemu: Add check for mapping MSI pirqs., Xen patchbot-unstable <=