|
@@ -3816,14 +3816,11 @@ int dmar_iommu_notify_scope_dev(struct dmar_pci_notify_info *info)
|
|
((void *)rmrr) + rmrr->header.length,
|
|
((void *)rmrr) + rmrr->header.length,
|
|
rmrr->segment, rmrru->devices,
|
|
rmrr->segment, rmrru->devices,
|
|
rmrru->devices_cnt);
|
|
rmrru->devices_cnt);
|
|
- if (ret > 0)
|
|
|
|
- break;
|
|
|
|
- else if(ret < 0)
|
|
|
|
|
|
+ if(ret < 0)
|
|
return ret;
|
|
return ret;
|
|
} else if (info->event == BUS_NOTIFY_DEL_DEVICE) {
|
|
} else if (info->event == BUS_NOTIFY_DEL_DEVICE) {
|
|
- if (dmar_remove_dev_scope(info, rmrr->segment,
|
|
|
|
- rmrru->devices, rmrru->devices_cnt))
|
|
|
|
- break;
|
|
|
|
|
|
+ dmar_remove_dev_scope(info, rmrr->segment,
|
|
|
|
+ rmrru->devices, rmrru->devices_cnt);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|