OSDN Git Service

iommu/arm-smmu-v3: Fix resource_size check
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 26 Dec 2019 09:50:56 +0000 (18:50 +0900)
committerWill Deacon <will@kernel.org>
Fri, 10 Jan 2020 09:49:27 +0000 (09:49 +0000)
commit322a9bbb720cd273d2967a375d1887199b361528
tree0f02ef4cd8fa37b24bb84e47a38450872f28c51f
parent935d43ba272e0001f8ef446a3eff15d8175cb11b
iommu/arm-smmu-v3: Fix resource_size check

This is an off-by-one mistake.

resource_size() returns res->end - res->start + 1.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c