aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-06-11 14:50:24 +0100
committerJoerg Roedel <[email protected]>2021-06-18 15:19:50 +0200
commit934ed4580c0a13a49ab7c4cbf94cd1958c0679ed (patch)
tree7cbd355c09a4557ee6949e306eb45a506c03f1a2 /lib/mpi/mpi-sub-ui.c
parentd6a9642bd673dd0bb2839274fe83eaa979b9207e (diff)
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: 4c82b88696ac ("iommu/vt-d: Allocate/register iopf queue for sva devices") Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions