projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a43713
)
intel_iommu: fix incorrect assert
author
Peter Xu
<peterx@redhat.com>
Mon, 31 Oct 2016 07:34:40 +0000
(15:34 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 15 Nov 2016 15:20:36 +0000
(17:20 +0200)
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
patch
|
blob
|
history
diff --git
a/hw/i386/intel_iommu.c
b/hw/i386/intel_iommu.c
index
20c4d2c
..
1b706ad
100644
(file)
--- a/
hw/i386/intel_iommu.c
+++ b/
hw/i386/intel_iommu.c
@@
-2463,7
+2463,7
@@
static AddressSpace *vtd_host_dma_iommu(PCIBus *bus, void *opaque, int devfn)
IntelIOMMUState *s = opaque;
VTDAddressSpace *vtd_as;
- assert(0 <= devfn && devfn <
=
X86_IOMMU_PCI_DEVFN_MAX);
+ assert(0 <= devfn && devfn < X86_IOMMU_PCI_DEVFN_MAX);
vtd_as = vtd_find_add_as(s, bus, devfn);
return &vtd_as->as;