We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d9654 commit a0e9911Copy full SHA for a0e9911
drivers/iommu/intel/iommu.c
@@ -2967,10 +2967,15 @@ static int init_iommu_hw(void)
2967
{
2968
struct dmar_drhd_unit *drhd;
2969
struct intel_iommu *iommu = NULL;
2970
+ int ret;
2971
- for_each_active_iommu(iommu, drhd)
2972
- if (iommu->qi)
2973
- dmar_reenable_qi(iommu);
+ for_each_active_iommu(iommu, drhd) {
+ if (iommu->qi) {
2974
+ ret = dmar_reenable_qi(iommu);
2975
+ if (ret)
2976
+ return ret;
2977
+ }
2978
2979
2980
for_each_iommu(iommu, drhd) {
2981
if (drhd->ignored) {
0 commit comments