Skip to content
Commit 9ae9df03 authored by Jordan Crouse's avatar Jordan Crouse Committed by Alex Williamson
Browse files

iommu: Check the result of iommu_group_get() for NULL



The result of iommu_group_get() was being blindly used in both
attach and detach which results in a dereference when trying
to work with an unknown device.

Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 1291a0d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment