提交 9900be08 编写于 作者: B Bixuan Cui 提交者: Yang Yingliang

iommu: fix a mistake for iommu_unregister_device_fault_handler

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: NBixuan Cui <cuibixuan@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 e2982609
......@@ -982,7 +982,7 @@ int iommu_unregister_device_fault_handler(struct device *dev)
mutex_lock(&param->lock);
/* we cannot unregister handler if there are pending faults */
if (list_empty(&param->fault_param->faults)) {
if (!list_empty(&param->fault_param->faults)) {
ret = -EBUSY;
goto unlock;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册