Skip to content

Commit 0aff8c2

Browse files
author
Chris von Recklinghausen
committed
tee: optee: do not check memref size on return from Secure World
Bugzilla: https://bugzilla.redhat.com/2166659 commit abc8dc3 Author: Jerome Forissier <jerome@forissier.org> Date: Thu Jan 13 16:27:13 2022 +0100 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 <jerome@forissier.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
1 parent 19a3cb5 commit 0aff8c2

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

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

0 commit comments

Comments
 (0)