From: Leon Romanovsky CDX reports successful DMA configuration when firmware setup defers or default-domain acquisition fails. Driver probing can then proceed without the required DMA setup or IOMMU ownership. Return the configuration result so driver core stops or defers probing instead of allowing a driver to use a rejected domain. Fixes: 2959ab247061 ("cdx: add the cdx bus driver") Signed-off-by: Leon Romanovsky --- drivers/cdx/cdx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cdx/cdx.c b/drivers/cdx/cdx.c index a118a89a7779d..0a030bf522690 100644 --- a/drivers/cdx/cdx.c +++ b/drivers/cdx/cdx.c @@ -367,7 +367,7 @@ static int cdx_dma_configure(struct device *dev) arch_teardown_dma_ops(dev); } - return 0; + return ret; } static void cdx_dma_cleanup(struct device *dev) -- 2.56.0