]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: downgrade two BUG_ONs to WARN_ON_ONCE
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Nov 2021 23:24:01 +0000 (18:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:34 +0000 (09:32 +0100)
commit53fa7f1473a023e15af72cf3bad4003aaf6bedda
treef1eaad3025786a661cf8b49b033a354eec645081
parentfc0595f538259253af0611590b27ae46e96cd69d
KVM: downgrade two BUG_ONs to WARN_ON_ONCE

[ Upstream commit 0d16e337c8dc9a83fbbb0a908260dba7cb7c52ba ]

This is not an unrecoverable situation.  Users of kvm_read_guest_offset_cached
and kvm_write_guest_offset_cached must expect the read/write to fail, and
therefore it is possible to just return early with an error value.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
virt/kvm/kvm_main.c