KVM: s390: Fix assumption that kvm_set_irq_routing is always run successfully
authorNicholas Krause <xerofoify@gmail.com>
Thu, 6 Aug 2015 17:05:54 +0000 (13:05 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Aug 2015 10:15:23 +0000 (12:15 +0200)
commit152b28392a8d9dd08e789b48b602eb75eef436fa
treeb554a0a76e747de082ebbde52989929044388404
parentfdf036507f1fc036d5a06753e9e8b13f46de73e8
KVM: s390: Fix assumption that kvm_set_irq_routing is always run successfully

This fixes the assumption that kvm_set_irq_routing is always run
successfully by instead making it equal to the variable r which
we use for returning in the function kvm_arch_vm_ioctl instead
of making r equal to zero when calling this particular function
and incorrectly making the caller of kvm_arch_vm_ioctl think
the function has run successfully.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Message-Id: <1438880754-27149-1-git-send-email-xerofoify@gmail.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c