[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] ioemu: Add check for mapping MSI pirqs.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |