Skip to content

Commit dbeb6ea

Browse files
committed
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]>
1 parent ea26c1a commit dbeb6ea

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
@@ -71,16 +71,6 @@ static int from_msg_param_tmp_mem(struct tee_param *p, u32 attr,
7171
p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa;
7272
p->u.memref.shm = shm;
7373

74-
/* Check that the memref is covered by the shm object */
75-
if (p->u.memref.size) {
76-
size_t o = p->u.memref.shm_offs +
77-
p->u.memref.size - 1;
78-
79-
rc = tee_shm_get_pa(shm, o, NULL);
80-
if (rc)
81-
return rc;
82-
}
83-
8474
return 0;
8575
}
8676

0 commit comments

Comments
 (0)