summaryrefslogtreecommitdiff
path: root/arch/s390
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 14:52:21 +0200
commit3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb (patch)
tree7783fc9f41f929c48187b0fc73acc8ba8f3adc31 /arch/s390
parent1efd0f595ab9d10fef1486dfdef952107c91f3db (diff)
downloadlinux-stable-3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb.tar.gz
linux-stable-3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb.tar.bz2
linux-stable-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')
-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;
}