summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-01-15 16:35:16 +0100
committerWill Deacon <will@kernel.org>2020-01-15 17:30:28 +0100
commit92c1d360dcda0ebd49253c0899bfeeb117be91fe (patch)
treec292d09a111905911bb616e66f72770a1e7c55c8 /certs
parentiommu/arm-smmu-v3: Improve add_device() error handling (diff)
downloadlinux-92c1d360dcda0ebd49253c0899bfeeb117be91fe.tar.xz
linux-92c1d360dcda0ebd49253c0899bfeeb117be91fe.zip
iommu/arm-smmu-v3: Return -EBUSY when trying to re-add a device
Although we WARN in arm_smmu_add_device() if the device being added has been added already without a subsequent call to arm_smmu_remove_device(), we still continue half-heartedly, initialising the stream-table for any new StreamIDs that may have magically appeared and re-establishing device links that should still be there from last time. Given that calling ->add_device() twice without removing the device in the meantime is indicative of an error in the caller, just return -EBUSY after warning. Cc: Robin Murphy <robin.murphy@arm.com> Cc: Jean Philippe-Brucker <jean-philippe@linaro.org> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions