]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390: gaccess: Refactor gpa and length calculation
authorJanis Schoetterl-Glausch <scgl@linux.ibm.com>
Fri, 26 Nov 2021 16:45:47 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 00:52:35 +0000 (01:52 +0100)
commit1f1c1ccdcb50e626bff00545740e2e7e0df1586c
tree5975534ce4c2da264dee32959d3e97a0acbbd0ed
parentcf60d19d40184e43d9a624e55a0da73be09e938d
KVM: s390: gaccess: Refactor gpa and length calculation

[ Upstream commit 416e7f0c9d613bf84e182eba9547ae8f9f5bfa4c ]

Improve readability by renaming the length variable and
not calculating the offset manually.

Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20211126164549.7046-2-scgl@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Stable-dep-of: e8061f06185b ("KVM: s390: gaccess: Check if guest address is in memslot")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kvm/gaccess.c