Commit 1bb6d144 authored by Kamal Mostafa's avatar Kamal Mostafa

[3.19-stable-only] fix backport "KVM: s390: avoid memory overwrites on emergency signal injection"

Fix bad 3.19-stable backport of mainline commit:
b85de33a KVM: s390: avoid memory overwrites on emergency signal injection
(3.19-stable: 2912b8ff)
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 6fcdbed2
......@@ -1061,7 +1061,7 @@ static int __inject_sigp_emergency(struct kvm_vcpu *vcpu,
emerg->code, 0, 2);
/* sending vcpu invalid */
if (kvm_get_vcpu_by_id(vcpu->kvm, emerg.code) == NULL)
if (kvm_get_vcpu_by_id(vcpu->kvm, emerg->code) == NULL)
return -EINVAL;
set_bit(emerg->code, li->sigp_emerg_pending);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment