KVM: s390: Fix return code for unknown ioctl numbers
authorCarsten Otte <cotte@de.ibm.com>
Wed, 4 Jan 2012 09:25:30 +0000 (10:25 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:21 +0000 (14:52 +0200)
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>
arch/s390/kvm/kvm-s390.c

index a1061b361c435b9060450ee2a426c6406f1b87de..a33b444875402a8baf81553fbdacd17643497311 100644 (file)
@@ -781,7 +781,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
                break;
        }
        default:
-               r = -EINVAL;
+               r = -ENOTTY;
        }
        return r;
 }