hw/arm/smmu-common: a fix to smmu_find_smmu_pcibus
commita2d3b8f24c53b3c7d4cf07cb92b2db42abf804d0
authorEric Auger <eric.auger@redhat.com>
Thu, 5 Mar 2020 16:09:14 +0000 (5 16:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Mar 2020 16:09:14 +0000 (5 16:09 +0000)
treea60d79f441a1b3db717b85c74d3d75cd1c1997c5
parent41a4bf1feab098da4cd5495cd56a99b0339e2275
hw/arm/smmu-common: a fix to smmu_find_smmu_pcibus

Make sure a null SMMUPciBus is returned in case we were
not able to identify a pci bus matching the @bus_num.

This matches the fix done on intel iommu in commit:
a2e1cd41ccfe796529abfd1b6aeb1dd4393762a2

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200226172628.17449-1-eric.auger@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c