All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/arm/smmu-common: a fix to smmu_find_smmu_pcibus
@ 2020-02-26 17:26 Eric Auger
  2020-02-26 17:37 ` Philippe Mathieu-Daudé
  2020-02-26 17:57 ` Peter Xu
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Auger @ 2020-02-26 17:26 UTC (permalink / raw)
  To: eric.auger.pro, eric.auger, qemu-devel, qemu-arm, peter.maydell, peterx

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>
---
 hw/arm/smmu-common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c
index 0f2573f004..67d7b2d0fd 100644
--- a/hw/arm/smmu-common.c
+++ b/hw/arm/smmu-common.c
@@ -301,6 +301,7 @@ SMMUPciBus *smmu_find_smmu_pcibus(SMMUState *s, uint8_t bus_num)
                 return smmu_pci_bus;
             }
         }
+        smmu_pci_bus = NULL;
     }
     return smmu_pci_bus;
 }
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-02 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-26 17:26 [PATCH] hw/arm/smmu-common: a fix to smmu_find_smmu_pcibus Eric Auger
2020-02-26 17:37 ` Philippe Mathieu-Daudé
2020-02-26 17:42   ` Philippe Mathieu-Daudé
2020-03-02 11:02   ` Peter Maydell
2020-03-02 11:34     ` Peter Maydell
2020-02-26 17:57 ` Peter Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.