diff options
author | 2017-04-18 20:51:48 +0800 | |
---|---|---|
committer | 2017-04-20 16:42:52 +0200 | |
commit | 3ba8775f64484a2b56bf3c88d09a186d819fa348 (patch) | |
tree | 4671e5427599947ad4f4104656167a36800ea1e7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommu/iova: Fix compile error with CONFIG_IOMMU_IOVA=m (diff) | |
download | wireguard-linux-3ba8775f64484a2b56bf3c88d09a186d819fa348.tar.xz wireguard-linux-3ba8775f64484a2b56bf3c88d09a186d819fa348.zip |
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: zhichang.yuan <yuanzhichang@hisilicon.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions