KVM: s390: Fix size of monitor-class number field
authorThomas Huth <thuth@linux.vnet.ibm.com>
Thu, 16 Oct 2014 12:31:53 +0000 (14:31 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 28 Oct 2014 12:09:11 +0000 (13:09 +0100)
The monitor-class number field is only 16 bits, so we have to use
a u16 pointer to access it.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
CC: stable@vger.kernel.org # v3.16+
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c

index a39838457f01778d81dd2827348ab0e8732936a0..4fc3fed636dc0a4fcaeee1f30942cce7bcd502b3 100644 (file)
@@ -270,7 +270,7 @@ static int __must_check __deliver_prog_irq(struct kvm_vcpu *vcpu,
                break;
        case PGM_MONITOR:
                rc = put_guest_lc(vcpu, pgm_info->mon_class_nr,
-                                 (u64 *)__LC_MON_CLASS_NR);
+                                 (u16 *)__LC_MON_CLASS_NR);
                rc |= put_guest_lc(vcpu, pgm_info->mon_code,
                                   (u64 *)__LC_MON_CODE);
                break;
This page took 0.034073 seconds and 5 git commands to generate.