Commit db6ae6158186a17165ef990bda2895ae7594b039

Authored by Scott Wood
Committed by Gleb Natapov
1 parent dfd2bb8426

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 <scottwood@freescale.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -2221,6 +2221,9 @@
2221 2221  
2222 2222 static const struct file_operations kvm_device_fops = {
2223 2223 .unlocked_ioctl = kvm_device_ioctl,
  2224 +#ifdef CONFIG_COMPAT
  2225 + .compat_ioctl = kvm_device_ioctl,
  2226 +#endif
2224 2227 .release = kvm_device_release,
2225 2228 };
2226 2229