diff options
author | Carsten Otte <cotte@de.ibm.com> | 2012-01-04 10:25:30 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 14:52:21 +0200 |
commit | 3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb (patch) | |
tree | 7783fc9f41f929c48187b0fc73acc8ba8f3adc31 /arch | |
parent | 1efd0f595ab9d10fef1486dfdef952107c91f3db (diff) | |
download | linux-3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb.tar.bz2 |
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')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 2 |
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; } |