[PULL v3 31/32] intel_iommu: a fix to vtd_find_as_from_bus_num()

2020-01-07 Thread Michael S. Tsirkin
From: Liu Yi L 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: qemu-sta...@nongnu.org Cc: Kevin Tian Cc: Jacob Pan Cc: Peter Xu Cc: Yi

[PULL v3 31/32] intel_iommu: a fix to vtd_find_as_from_bus_num()

2020-01-05 Thread Michael S. Tsirkin
From: Liu Yi L 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: qemu-sta...@nongnu.org Cc: Kevin Tian Cc: Jacob Pan Cc: Peter Xu Cc: Yi