Not the incorrect -EINVAL.
Signed-off-by: Avi Kivity <avi@redhat.com>
{
struct kvm *kvm = filp->private_data;
void __user *argp = (void __user *)arg;
- int r = -EINVAL;
+ int r = -ENOTTY;
switch (ioctl) {
case KVM_SET_MEMORY_REGION: {
switch (ioctl) {
default:
- r = -EINVAL;
+ r = -ENOTTY;
}
return r;
break;
}
default:
- r = -EINVAL;
+ r = -ENOTTY;
}
return r;
{
struct kvm *kvm = filp->private_data;
void __user *argp = (void __user *)arg;
- int r = -EINVAL;
+ int r = -ENOTTY;
/*
* This union makes it completely explicit to gcc-3.x
* that these two variables' stack usage should be