commit | 6b0c54e7f2715997c366e8374209bc74259b0a59 | [log] [tgz] |
---|---|---|
author | Yunsheng Lin <linyunsheng@huawei.com> | Sat Aug 24 09:47:12 2019 +0800 |
committer | Joerg Roedel <jroedel@suse.de> | Fri Aug 30 16:23:19 2019 +0200 |
tree | 1fa43637a4d950d1f7ae6e66d878068ecbd8c169 | |
parent | 4dbd258ff63e0597ee8fb44d277c6c701f5019d9 [diff] |
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: fdbe574eb693 ("iommu/dma: Allow MSI-only cookies") Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>