]> Git Repo - qemu.git/commit - hw/i386/intel_iommu.c
intel_iommu: a fix to vtd_find_as_from_bus_num()
authorLiu Yi L <[email protected]>
Fri, 3 Jan 2020 13:28:05 +0000 (21:28 +0800)
committerMichael S. Tsirkin <[email protected]>
Mon, 6 Jan 2020 17:04:51 +0000 (12:04 -0500)
commita2e1cd41ccfe796529abfd1b6aeb1dd4393762a2
tree56fdb50997352dbde0b6cffe808fd1e6ce878ed3
parentd945d9f1731244ef341f74ede93120fc9de35913
intel_iommu: a fix to vtd_find_as_from_bus_num()

Ensure the return value of vtd_find_as_from_bus_num() is NULL by
enforcing vtd_bus=NULL. This would help caller of vtd_find_as_from_bus_num()
to decide if any further operation on the returned vtd_bus.

Cc: [email protected]
Cc: Kevin Tian <[email protected]>
Cc: Jacob Pan <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Yi Sun <[email protected]>
Signed-off-by: Liu Yi L <[email protected]>
Signed-off-by: Yi Sun <[email protected]>
Message-Id: <1578058086[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/intel_iommu.c
This page took 0.021654 seconds and 4 git commands to generate.