diff options
| author | Qihang <q.h.hack.winter@gmail.com> | 2026-05-07 23:39:17 +0800 |
|---|---|---|
| committer | Jens Wiklander <jens.wiklander@linaro.org> | 2026-05-20 08:49:09 +0200 |
| commit | 6fa9b543f6b4ed15ff72af266b29f316643de289 (patch) | |
| tree | a7b60cc6dd083ac11e37c0e4bcc61639583715cd /include/uapi/linux | |
| parent | 26682f5efc276e3ad96d102019472bfbf03833b2 (diff) | |
tee: fix params_from_user() error path in tee_ioctl_supp_recv
params_from_user() may acquire tee_shm references for MEMREF parameters
before failing after partially processing the supplied parameter array.
In tee_ioctl_supp_recv(), those references are currently not released on
that error path.
Fix this by freeing MEMREF references before returning when
params_from_user() fails.
Keep the final cleanup path in tee_ioctl_supp_recv() unchanged since
supp_recv() may consume and replace the supplied parameters, unlike the
other TEE ioctl callback paths.
Signed-off-by: Qihang <q.h.hack.winter@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
