]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit249cc11d2bbdb735cc7985cc4f5bb38c1531802c
tree0f02ef4cd8fa37b24bb84e47a38450872f28c51f
parentf4f311f13fce830b9342dabc045114aa16e31d48
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