Commit 13b02623 authored by Jordan Crouse's avatar Jordan Crouse Committed by Srinivas Kandagatla
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 67995dec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment