Skip to content
Commit 934ed458 authored by Colin Ian King's avatar Colin Ian King Committed by Joerg Roedel
Browse files

iommu/vt-d: Fix dereference of pointer info before it is null checked



The assignment of iommu from info->iommu occurs before info is null checked
hence leading to a potential null pointer dereference issue. Fix this by
assigning iommu and checking if iommu is null after null checking info.

Addresses-Coverity: ("Dereference before null check")
Fixes: 4c82b886 ("iommu/vt-d: Allocate/register iopf queue for sva devices")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210611135024.32781-1-colin.king@canonical.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent d6a9642b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment