Skip to content
Commit 3ba8775f authored by zhichang.yuan's avatar zhichang.yuan Committed by Joerg Roedel
Browse files

iommu: Make iommu_bus_notifier return NOTIFY_DONE rather than error code



In iommu_bus_notifier(), when action is
BUS_NOTIFY_ADD_DEVICE, it will return 'ops->add_device(dev)'
directly. But ops->add_device will return ERR_VAL, such as
-ENODEV. These value will make notifier_call_chain() not to
traverse the remain nodes in struct notifier_block list.

This patch revises iommu_bus_notifier() to return
NOTIFY_DONE when some errors happened in ops->add_device().

Signed-off-by: default avatarzhichang.yuan <yuanzhichang@hisilicon.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent b4d8c7ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment