Re: [PATCH] iommu/dma: fix for dereferencing before null checking

2019-08-30 Thread Joerg Roedel
On Sat, Aug 24, 2019 at 09:47:12AM +0800, Yunsheng Lin wrote: > drivers/iommu/dma-iommu.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks.

[PATCH] iommu/dma: fix for dereferencing before null checking

2019-08-23 Thread Yunsheng Lin
The cookie is dereferenced before null checking in the function iommu_dma_init_domain. This patch moves the dereferencing after the null checking. Fixes: fdbe574eb693 ("iommu/dma: Allow MSI-only cookies") Signed-off-by: Yunsheng Lin --- drivers/iommu/dma-iommu.c | 4 +++- 1 file changed, 3 inse