From: Carsten Otte Date: Wed, 4 Jan 2012 09:25:30 +0000 (+0100) Subject: KVM: s390: Fix return code for unknown ioctl numbers X-Git-Tag: firefly_0821_release~3680^2~3220^2~116 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e6afcf1d8ce6bca6bfa62a49c1d70d2f16162eb;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- 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; }