hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/virt/fsl_hypervisor.c
....@@ -247,7 +247,7 @@
247247
248248 /* Get the physical addresses of the source buffer */
249249 num_pinned = get_user_pages_fast(param.local_vaddr - lb_offset,
250
- num_pages, param.source != -1, pages);
250
+ num_pages, param.source != -1 ? FOLL_WRITE : 0, pages);
251251
252252 if (num_pinned != num_pages) {
253253 pr_debug("fsl-hv: could not lock source buffer\n");
....@@ -705,7 +705,7 @@
705705 .poll = fsl_hv_poll,
706706 .read = fsl_hv_read,
707707 .unlocked_ioctl = fsl_hv_ioctl,
708
- .compat_ioctl = fsl_hv_ioctl,
708
+ .compat_ioctl = compat_ptr_ioctl,
709709 };
710710
711711 static struct miscdevice fsl_hv_misc_dev = {