Commit 6b0c54e7 authored by Yunsheng Lin's avatar Yunsheng Lin Committed by Joerg Roedel
Browse files

iommu/dma: Fix for dereferencing before null checking

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: default avatarYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 4dbd258f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment