projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfd2bb8
)
kvm: Add compat_ioctl for device control API
author
Scott Wood
<scottwood@freescale.com>
Wed, 1 May 2013 01:00:45 +0000
(20:00 -0500)
committer
Gleb Natapov
<gleb@redhat.com>
Sun, 5 May 2013 09:14:15 +0000
(12:14 +0300)
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>
virt/kvm/kvm_main.c
patch
|
blob
|
blame
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index e6e7abe16d054b78c4254ea06ac8b5267413e96f..8fd325a0a1b1a13b7f4a8c8d4a2854caaac1144e 100644
(file)
--- 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,
};