diff options
author | Robin Murphy | 2019-01-07 18:04:50 +0100 |
---|---|---|
committer | Joerg Roedel | 2019-01-11 12:28:24 +0100 |
commit | e8e683ae9a736407a20135df7809090a446db707 (patch) | |
tree | 381cdad2ea681215ed766d433fd7d6302c4f8418 /sound/firewire/amdtp-stream-trace.h | |
parent | Linux 5.0-rc1 (diff) | |
download | kernel-qcow2-linux-e8e683ae9a736407a20135df7809090a446db707.tar.gz kernel-qcow2-linux-e8e683ae9a736407a20135df7809090a446db707.tar.xz kernel-qcow2-linux-e8e683ae9a736407a20135df7809090a446db707.zip |
iommu/of: Fix probe-deferral
Whilst iommu_probe_device() does check for non-NULL ops as the previous
code did, it does not do so in the same order relative to the other
checks, and as a result means that -EPROBE_DEFER returned by of_xlate()
(plus any real error condition too) gets overwritten with -EINVAL and
leads to various misbehaviour.
Reinstate the original logic, but without implicitly relying on ops
being set to infer !err as the initial condition (now that the validity
of ops for its own sake is checked elsewhere).
Fixes: 641fb0efbff0 ("iommu/of: Don't call iommu_ops->add_device directly")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-stream-trace.h')
0 files changed, 0 insertions, 0 deletions