diff options
| author | Peter Xu | 2016-10-31 08:34:40 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-11-15 16:20:36 +0100 |
| commit | 8e7a0a1616faa852d65427bbbb6296dffb38990d (patch) | |
| tree | 9b7276b551f22267959e3dcb9eea1360468b2fbf | |
| parent | intel_iommu: fix several incorrect endianess and bit fields (diff) | |
| download | qemu-8e7a0a1616faa852d65427bbbb6296dffb38990d.tar.gz qemu-8e7a0a1616faa852d65427bbbb6296dffb38990d.tar.xz qemu-8e7a0a1616faa852d65427bbbb6296dffb38990d.zip | |
intel_iommu: fix incorrect assert
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>
| -rw-r--r-- | hw/i386/intel_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 20c4d2c3b7..1b706adf9d 100644 --- 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; |
