Skip to content

Commit

Permalink
tee: optee: do not check memref size on return from Secure World
Browse files Browse the repository at this point in the history
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 <jerome@forissier.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
  • Loading branch information
jforissier committed Jan 19, 2022
1 parent ea26c1a commit dbeb6ea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/tee/optee/smc_abi.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ static int from_msg_param_tmp_mem(struct tee_param *p, u32 attr,
p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa;
p->u.memref.shm = shm;

/* Check that the memref is covered by the shm object */
if (p->u.memref.size) {
size_t o = p->u.memref.shm_offs +
p->u.memref.size - 1;

rc = tee_shm_get_pa(shm, o, NULL);
if (rc)
return rc;
}

return 0;
}

Expand Down

0 comments on commit dbeb6ea

Please sign in to comment.