diff options
author | Andrew Jones <drjones@redhat.com> | 2019-04-04 19:42:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-25 18:22:27 +0200 |
commit | e6ae439228972264d28461ab1a36d9ffd1b78261 (patch) | |
tree | 7b59fbae7966c7e35b26df535c7c20c70ef6faf9 /drivers/edac/octeon_edac-lmc.c | |
parent | 5450811a02f53b1e2b3b3a2a297f7af5f3e51623 (diff) |
KVM: arm/arm64: Ensure vcpu target is unset on reset failure
[ Upstream commit 811328fc3222f7b55846de0cd0404339e2e1e6d7 ]
A failed KVM_ARM_VCPU_INIT should not set the vcpu target,
as the vcpu target is used by kvm_vcpu_initialized() to
determine if other vcpu ioctls may proceed. We need to set
the target before calling kvm_reset_vcpu(), but if that call
fails, we should then unset it and clear the feature bitmap
while we're at it.
Signed-off-by: Andrew Jones <drjones@redhat.com>
[maz: Simplified patch, completed commit message]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/edac/octeon_edac-lmc.c')
0 files changed, 0 insertions, 0 deletions