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: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
Jordan Crouse 2017-12-20 09:48:36 -07:00 • committed by Alex Williamson
commit 9ae9df035c