diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-02-04 15:53:42 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-03-06 13:40:33 +0100 |
commit | 261520dcfcba93ca5dfe671b88ffab038cd940c8 (patch) | |
tree | b4c67ed384402a61f05c69a7ef6ae4ee20228162 /arch/s390/kvm/kvm-s390.h | |
parent | KVM: s390: Zero out current VMDB of STSI before including level3 data. (diff) | |
download | linux-261520dcfcba93ca5dfe671b88ffab038cd940c8.tar.xz linux-261520dcfcba93ca5dfe671b88ffab038cd940c8.zip |
KVM: s390: fix handling of write errors in the tpi handler
If the I/O interrupt could not be written to the guest provided
area (e.g. access exception), a program exception was injected into the
guest but "inti" wasn't freed, therefore resulting in a memory leak.
In addition, the I/O interrupt wasn't reinjected. Therefore the dequeued
interrupt is lost.
This patch fixes the problem while cleaning up the function and making the
cc and rc logic easier to handle.
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.h')
0 files changed, 0 insertions, 0 deletions