KVM: Return -ENOTTY on unrecognized ioctls
Not the incorrect -EINVAL. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -150,7 +150,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
r = -EINVAL;
|
||||
r = -ENOTTY;
|
||||
}
|
||||
|
||||
return r;
|
||||
|
Reference in New Issue
Block a user