Skip to content

Commit abc8dc3

Browse files
jforissierjenswi-linaro
authored andcommitted
tee: optee: do not check memref size on return from Secure World
Commit c650b8d ("tee: optee: do not check memref size on return from Secure World") was mistakenly lost in commit 4602c58 ("optee: refactor driver with internal callbacks"). Remove the unwanted code again. Fixes: 4602c58 ("optee: refactor driver with internal callbacks") Signed-off-by: Jerome Forissier <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 9decff5 commit abc8dc3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/tee/optee/smc_abi.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ static int from_msg_param_tmp_mem(struct tee_param *p, u32 attr,
7575
p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa;
7676
p->u.memref.shm = shm;
7777

78-
/* Check that the memref is covered by the shm object */
79-
if (p->u.memref.size) {
80-
size_t o = p->u.memref.shm_offs +
81-
p->u.memref.size - 1;
82-
83-
rc = tee_shm_get_pa(shm, o, NULL);
84-
if (rc)
85-
return rc;
86-
}
87-
8878
return 0;
8979
}
9080

0 commit comments

Comments
 (0)