iommu/vt-d: Don't return error when device gets right domain
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 12 Jun 2019 00:28:45 +0000 (08:28 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Jun 2019 08:36:59 +0000 (10:36 +0200)
commitf4c63ea91c6f6d9a1a3062071ff6cc4910ebb8a9
tree4d6e34103ce76a8d63b5d4410d55b8f413ab49c9
parent1c5c59fbad20a63954de07687e4a29af18d1be12
iommu/vt-d: Don't return error when device gets right domain

If a device gets a right domain in add_device ops, it shouldn't
return error.

Fixes: 942067f1b6b97 ("iommu/vt-d: Identify default domains replaced with private")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c