summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2012-01-04 10:25:30 +0100
committerAvi Kivity <avi@redhat.com>2012-03-05 13:52:21 +0100
commit3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb (patch)
tree7783fc9f41f929c48187b0fc73acc8ba8f3adc31 /arch/s390/kvm
parentKVM: s390: ucontrol: announce capability for user controlled vms (diff)
downloadlinux-3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb.tar.xz
linux-3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb.zip
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')
-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,
break;
}
default:
- r = -EINVAL;
+ r = -ENOTTY;
}
return r;
}