projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5271b20
)
tee: tee_shm_op_mmap(): use TEE_SHM_USER_MAPPED
author
Jens Wiklander
<jens.wiklander@linaro.org>
Thu, 7 Nov 2019 10:43:02 +0000
(11:43 +0100)
committer
Jens Wiklander
<jens.wiklander@linaro.org>
Fri, 28 Feb 2020 12:37:42 +0000
(13:37 +0100)
tee_shm_op_mmap() uses the TEE_SHM_USER_MAPPED flag instead of the
TEE_SHM_REGISTER flag to tell if a shared memory object is originating
from registered user space memory.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_shm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tee/tee_shm.c
b/drivers/tee/tee_shm.c
index b01d2b7eea7173ea45a8df8cc17a14a860f3079a..bd679b72bd05ce7ce35061fac83f996feabead8f 100644
(file)
--- a/
drivers/tee/tee_shm.c
+++ b/
drivers/tee/tee_shm.c
@@
-76,7
+76,7
@@
static int tee_shm_op_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
size_t size = vma->vm_end - vma->vm_start;
/* Refuse sharing shared memory provided by application */
- if (shm->flags & TEE_SHM_
REGISTER
)
+ if (shm->flags & TEE_SHM_
USER_MAPPED
)
return -EINVAL;
return remap_pfn_range(vma, vma->vm_start, shm->paddr >> PAGE_SHIFT,