mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
misc: mods: optee: Fix cert-c issues
Previously we had a change to fix the cert-c issues, but it didn't properly eliminate the INT31-C warning. This change correctly eliminates the following two cert-c warnings: CID 556497 CID 556498 Bug 3745813 Change-Id: I03ac2b2edc5633c80b4a8285a08605398a35d35f Signed-off-by: Jason Li (SW-TEGRA) <jasl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2827247 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
8061cf233b
commit
2b2a83bf5f
@@ -106,11 +106,13 @@ int esc_mods_invoke_optee_ta(struct mods_client *client,
|
||||
if (params[1].u.value.a > U32_MAX || params[1].u.value.b > U32_MAX) {
|
||||
ret = EOVERFLOW;
|
||||
goto out_shm;
|
||||
} else {
|
||||
p->out_a = (__u32)params[1].u.value.a;
|
||||
p->out_b = (__u32)params[1].u.value.b;
|
||||
}
|
||||
|
||||
memmove(p->buf, temp_buf, p->buf_size);
|
||||
p->tee_ret = invoke_arg.ret;
|
||||
p->out_a = params[1].u.value.a;
|
||||
p->out_b = params[1].u.value.b;
|
||||
|
||||
out_shm:
|
||||
tee_shm_free(shm);
|
||||
|
||||
Reference in New Issue
Block a user