diff options
author | David Hildenbrand <david@redhat.com> | 2022-11-16 11:26:54 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-30 15:58:59 -0800 |
commit | 70b96f24a441e5a7e0853e3893edd9dc58b67996 (patch) | |
tree | 308ee57f85d90ed3d6c2173d5aa00bc171f120a5 /drivers/media/pci/ivtv/ivtv-udma.c | |
parent | 7d96eb6a9164607df09c9589ed3ba9ef4e9cc2a6 (diff) | |
download | linux-70b96f24a441e5a7e0853e3893edd9dc58b67996.tar.gz linux-70b96f24a441e5a7e0853e3893edd9dc58b67996.tar.bz2 linux-70b96f24a441e5a7e0853e3893edd9dc58b67996.zip |
media: pci/ivtv: remove FOLL_FORCE usage
FOLL_FORCE is really only for ptrace access. R/O pinning a page is
supposed to fail if the VMA misses proper access permissions (no VM_READ).
Let's just remove FOLL_FORCE usage here; there would have to be a pretty
good reason to allow arbitrary drivers to R/O pin pages in a PROT_NONE
VMA. Most probably, FOLL_FORCE usage is just some legacy leftover.
Link: https://lkml.kernel.org/r/20221116102659.70287-16-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-udma.c')
-rw-r--r-- | drivers/media/pci/ivtv/ivtv-udma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-udma.c b/drivers/media/pci/ivtv/ivtv-udma.c index 210be8290f24..99b9f55ca829 100644 --- a/drivers/media/pci/ivtv/ivtv-udma.c +++ b/drivers/media/pci/ivtv/ivtv-udma.c @@ -115,7 +115,7 @@ int ivtv_udma_setup(struct ivtv *itv, unsigned long ivtv_dest_addr, /* Pin user pages for DMA Xfer */ err = pin_user_pages_unlocked(user_dma.uaddr, user_dma.page_count, - dma->map, FOLL_FORCE); + dma->map, 0); if (user_dma.page_count != err) { IVTV_DEBUG_WARN("failed to map user pages, returned %d instead of %d\n", |