Skip to content

Commit

Permalink
kvm: Add compat_ioctl for device control API
Browse files Browse the repository at this point in the history
This API shouldn't have 32/64-bit issues, but VFS assumes it does
unless told otherwise.

Signed-off-by: Scott Wood <[email protected]>
Signed-off-by: Gleb Natapov <[email protected]>
  • Loading branch information
Scott Wood authored and Gleb Natapov committed May 5, 2013
1 parent dfd2bb8 commit db6ae61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit db6ae61

Please sign in to comment.