diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index ca63b7a89b79a5538aa7ca6c66f06cc9e862b607..441d760a04acf0121bdeb1e07913f4ffa0b8e872 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -982,7 +982,7 @@ int iommu_unregister_device_fault_handler(struct device *dev) mutex_lock(¶m->lock); /* we cannot unregister handler if there are pending faults */ - if (list_empty(¶m->fault_param->faults)) { + if (!list_empty(¶m->fault_param->faults)) { ret = -EBUSY; goto unlock; }