| .. | .. |
|---|
| 247 | 247 | |
|---|
| 248 | 248 | /* Get the physical addresses of the source buffer */ |
|---|
| 249 | 249 | 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); |
|---|
| 251 | 251 | |
|---|
| 252 | 252 | if (num_pinned != num_pages) { |
|---|
| 253 | 253 | pr_debug("fsl-hv: could not lock source buffer\n"); |
|---|
| .. | .. |
|---|
| 705 | 705 | .poll = fsl_hv_poll, |
|---|
| 706 | 706 | .read = fsl_hv_read, |
|---|
| 707 | 707 | .unlocked_ioctl = fsl_hv_ioctl, |
|---|
| 708 | | - .compat_ioctl = fsl_hv_ioctl, |
|---|
| 708 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 709 | 709 | }; |
|---|
| 710 | 710 | |
|---|
| 711 | 711 | static struct miscdevice fsl_hv_misc_dev = { |
|---|