From: Bixuan Cui cuibixuan@huawei.com
ascend inclusion category: bugfix bugzilla: NA CVE: NA
-------------------------------------------------
Fix a mistake check for commit bd6c06e0917d ("iommu: introduce device fault report API")
Fixes: bd6c06e0917d ("iommu: introduce device fault report API") Signed-off-by: Bixuan Cui cuibixuan@huawei.com Reviewed-by: Hanjun Guo guohanjun@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 831c5065f7f8..bee6b8fcfe0e 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; }