iommu: Defer the early return in arm_(v7s/lpae)_map
authorKeqian Zhu <zhukeqian1@huawei.com>
Mon, 7 Dec 2020 11:57:58 +0000 (19:57 +0800)
committerWill Deacon <will@kernel.org>
Tue, 8 Dec 2020 13:56:30 +0000 (13:56 +0000)
commitf12e0d22903e8fb653168efa67ae3308712ea97e
tree5dc3fea8e7fbd6700aaf808f0a85222dd4c9a0b6
parent093b32a849b336b5b48bdde1041fc06f91ae475c
iommu: Defer the early return in arm_(v7s/lpae)_map

Although handling a mapping request with no permissions is a
trivial no-op, defer the early return until after the size/range
checks so that we are consistent with other mapping requests.

Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Link: https://lore.kernel.org/r/20201207115758.9400-1-zhukeqian1@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/io-pgtable-arm-v7s.c
drivers/iommu/io-pgtable-arm.c