media/v4l2-core: untag user pointers in videobuf_dma_contig_user_get

This patch is a part of a series that extends kernel ABI to allow to pass
tagged user pointers (with the top byte set to something else other than
0x00) as syscall arguments.

videobuf_dma_contig_user_get() uses provided user pointers for vma
lookups, which can only by done with untagged pointers.

Untag the pointers in this function.

Signed-off-by: Andrey Konovalov <>
Reviewed-by: Khalid Aziz <>
Reviewed-by: Kees Cook <>
Acked-by: Mauro Carvalho Chehab <>
Cc: Al Viro <>
Cc: Catalin Marinas <>
Cc: Dave Hansen <>
Cc: Eric Auger <>
Cc: Felix Kuehling <>
Cc: Jens Wiklander <>
Cc: Mike Rapoport <>
Cc: Vincenzo Frascino <>
Cc: Will Deacon <>
Signed-off-by: Andrew Morton <>
1 file changed