]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: fix return code handling in lpsw/lpswe handlers
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 25 Mar 2013 16:22:51 +0000 (17:22 +0100)
committerGleb Natapov <gleb@redhat.com>
Tue, 2 Apr 2013 13:14:33 +0000 (16:14 +0300)
commitcd896c4f989dc37d069307c810c85e5760a02ad2
tree73341520406163d3c0374d7fb17bd843a62b79df
parenteeb7f97368c5b452a614475b96dd6bb50ab2b5e6
KVM: s390: fix return code handling in lpsw/lpswe handlers

kvm_s390_inject_program_int() may return with a non-zero return value, in
case of an error (out of memory). Report that to the calling functions
instead of ignoring the error case.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/s390/kvm/priv.c