Merge tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/git/arnd...
[linux-2.6-block.git] / drivers / infiniband / core / uverbs_main.c
index 9aa7ffc1d12a93bd83d149752eecccf0251cb091..970d8e31dd658ccd81cd5d029d38567257675d13 100644 (file)
@@ -1079,7 +1079,7 @@ static const struct file_operations uverbs_fops = {
        .release = ib_uverbs_close,
        .llseek  = no_llseek,
        .unlocked_ioctl = ib_uverbs_ioctl,
-       .compat_ioctl = ib_uverbs_ioctl,
+       .compat_ioctl = compat_ptr_ioctl,
 };
 
 static const struct file_operations uverbs_mmap_fops = {
@@ -1090,7 +1090,7 @@ static const struct file_operations uverbs_mmap_fops = {
        .release = ib_uverbs_close,
        .llseek  = no_llseek,
        .unlocked_ioctl = ib_uverbs_ioctl,
-       .compat_ioctl = ib_uverbs_ioctl,
+       .compat_ioctl = compat_ptr_ioctl,
 };
 
 static int ib_uverbs_get_nl_info(struct ib_device *ibdev, void *client_data,