mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
1a43713b02
commit
8e7a0a1616
|
@ -2463,7 +2463,7 @@ static AddressSpace *vtd_host_dma_iommu(PCIBus *bus, void *opaque, int devfn)
|
||||||
IntelIOMMUState *s = opaque;
|
IntelIOMMUState *s = opaque;
|
||||||
VTDAddressSpace *vtd_as;
|
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);
|
vtd_as = vtd_find_add_as(s, bus, devfn);
|
||||||
return &vtd_as->as;
|
return &vtd_as->as;
|
||||||
|
|
Loading…
Reference in New Issue