author: David Brazdil <dbrazdil@google.com> 2021-07-28 15:32:31 +0000
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-18 09:07:03 +0200
commit: f3409e925da2315c298d7b5966de7b383e4633db
parent: 14034883d0587b4e2f63f6386d34bacd22cf1740
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/arm64/kvm/hyp/nvhe/mem_protect.c b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
index 4b60c0056c04..fa1b77fe629d 100644
--- a/arch/arm64/kvm/hyp/nvhe/mem_protect.c
+++ b/arch/arm64/kvm/hyp/nvhe/mem_protect.c
@@ -190,7 +190,7 @@ static bool range_is_memory(u64 start, u64 end)
{
struct kvm_mem_range r1, r2;
- if (!find_mem_range(start, &r1) || !find_mem_range(end, &r2))
+ if (!find_mem_range(start, &r1) || !find_mem_range(end - 1, &r2))
return false;
if (r1.start != r2.start)
return false;