mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-24 14:45:12 +08:00
media: atomisp: hmm_bo: untag user pointers
The kernel ABI was extended to allow pass tagged user pointers.
Untag the pointers in this function.
Fixes: d93445225c
("uaccess: add noop untagged_addr definition")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
08fef4fa94
commit
576680cd01
@ -997,6 +997,9 @@ static int alloc_user_pages(struct hmm_buffer_object *bo,
|
||||
* Handle frame buffer allocated in other kerenl space driver
|
||||
* and map to user space
|
||||
*/
|
||||
|
||||
userptr = untagged_addr(userptr);
|
||||
|
||||
if (vma->vm_flags & (VM_IO | VM_PFNMAP)) {
|
||||
page_nr = get_pfnmap_pages(current, current->mm,
|
||||
(unsigned long)userptr,
|
||||
|
Loading…
Reference in New Issue
Block a user