From: Scott Wood Date: Wed, 1 May 2013 01:00:45 +0000 (-0500) Subject: kvm: Add compat_ioctl for device control API X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db6ae6158186a17165ef990bda2895ae7594b039;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git kvm: Add compat_ioctl for device control API This API shouldn't have 32/64-bit issues, but VFS assumes it does unless told otherwise. Signed-off-by: Scott Wood Signed-off-by: Gleb Natapov --- diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e6e7abe16d05..8fd325a0a1b1 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2221,6 +2221,9 @@ static int kvm_device_release(struct inode *inode, struct file *filp) static const struct file_operations kvm_device_fops = { .unlocked_ioctl = kvm_device_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = kvm_device_ioctl, +#endif .release = kvm_device_release, };