]> 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)
commitd6e259db96b0241ac911036d7b14cb42d66699a5
tree73341520406163d3c0374d7fb17bd843a62b79df
parent78f4c350df96fb669dde6e45e0157e34246efec6
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