KVM: s390: fix diagnose code extraction
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 11 Nov 2013 12:56:47 +0000 (13:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:08:15 +0000 (11:08 -0800)
commit8a6b1708b918d20a89d0d596d016b358c6e2d6fb
treec9780c17be88965667144b1d6acd706640e6f97f
parent8d353b6d2f264168b820b2124c3db5018430fd04
KVM: s390: fix diagnose code extraction

commit 743db27c526e0f31cc507959d662e97e2048a86f upstream.

The diagnose code to be used is the contents of the base register (if not
zero), plus the displacement. The current code ignores the base register
contents. So let's fix that...

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/diag.c