From: David Hildenbrand Date: Wed, 4 Feb 2015 14:53:42 +0000 (+0100) Subject: KVM: s390: fix handling of write errors in the tpi handler X-Git-Tag: omap-for-v4.1/fixes-rc1~202^2~42^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=261520dcfcba93ca5dfe671b88ffab038cd940c8;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org # 3.16+ Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed