KVM: s390: fix return code handling in lpsw/lpswe handlers
authorHeiko Carstens <[email protected]>
Mon, 25 Mar 2013 16:22:51 +0000 (17:22 +0100)
committerGleb Natapov <[email protected]>
Tue, 2 Apr 2013 13:14:33 +0000 (16:14 +0300)
commit6fd0fcc93b1eaf82911782de5c7aa35c174bf620
tree73341520406163d3c0374d7fb17bd843a62b79df
parentace5058763b72d128efcbe27969e89226c9c593a
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 <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
Signed-off-by: Gleb Natapov <[email protected]>
arch/s390/kvm/priv.c