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>
This commit is contained in:
Keqian Zhu 2020-12-07 19:57:58 +08:00 • committed by Will Deacon
commit f12e0d2290
2 changed files with 8 additions and 8 deletions