iommu/amd: Check for error states first in iommu_go_to_state()
authorJoerg Roedel <jroedel@suse.de>
Fri, 16 Jun 2017 14:09:57 +0000 (16:09 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 22 Jun 2017 10:54:20 +0000 (12:54 +0200)
commit151b09031a76ba6b6b83f94953074d6f10aa30b3
treed659ea3eec114633725cb6987e0e7021d64783a9
parent1b1e942e344d3d41de187c1275024e915cb15844
iommu/amd: Check for error states first in iommu_go_to_state()

Check if we are in an error state already before calling
into state_next().

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c