diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index cfb52e966bcc1413c5357ec3b7c3da614ea60650..cde37ab007603bdf47127cf792463d3c1672c10c 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; }