aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2012-01-04 04:25:30 -0500
committerAvi Kivity <avi@redhat.com>2012-03-05 07:52:21 -0500
commit3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb (patch)
tree7783fc9f41f929c48187b0fc73acc8ba8f3adc31 /arch/s390/kvm/kvm-s390.c
parent1efd0f595ab9d10fef1486dfdef952107c91f3db (diff)
KVM: s390: Fix return code for unknown ioctl numbers
This patch fixes the return code of kvm_arch_vcpu_ioctl in case of an unkown ioctl number. Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index a1061b361c43..a33b44487540 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -781,7 +781,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
781 break; 781 break;
782 } 782 }
783 default: 783 default:
784 r = -EINVAL; 784 r = -ENOTTY;
785 } 785 }
786 return r; 786 return r;
787} 787}