iommu/amd: Missing error code in amd_iommu_init_device()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2016 11:05:44 +0000 (14:05 +0300)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Nov 2016 16:39:44 +0000 (17:39 +0100)
commit24c790fbf5d8f54c8c82979db11edea8855b74bf
treed58e5ebbc9a61f500f4b796035a6c18afd8f16d5
parent62280cf2e8bb46d14b47b198720ab2d69b43faf7
iommu/amd: Missing error code in amd_iommu_init_device()

We should set "ret" to -EINVAL if iommu_group_get() fails.

Fixes: 55c99a4dc50f ("iommu/amd: Use iommu_attach_group()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_v2.c