iommu/dma: Fix for dereferencing before null checking
mainline inclusion from mainline-v5.4-rc1 commit 6b0c54e7 category: bugfix bugzilla: 21318 CVE: NA ------------------------------------------------------------------------- The cookie is dereferenced before null checking in the function iommu_dma_init_domain. This patch moves the dereferencing after the null checking. Fixes: fdbe574e ("iommu/dma: Allow MSI-only cookies") Signed-off-by:Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by:
Joerg Roedel <jroedel@suse.de> Conflicts: drivers/iommu/dma-iommu.c Signed-off-by:
Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by:
Hanjun Guo <guohanjun@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment