diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2022-08-23 10:23:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-25 11:38:24 +0200 |
commit | 606fe84a41851ab8307bb6096189dc8f4c8ba16b (patch) | |
tree | e28fc979c708be272474a52c3532deeaba685598 /lib/mpi/mpi-sub-ui.c | |
parent | 3527e3cbb84d8868c4d4e91ba55915f96d39ec3d (diff) |
tee: fix memory leak in tee_shm_register()
Moves the access_ok() check for valid memory range from user space from
the function tee_shm_register() to tee_ioctl_shm_register(). With this
we error out early before anything is done that must be undone on error.
Fixes: 578c349570d2 ("tee: add overflow check in register_shm_helper()")
Cc: stable@vger.kernel.org # 5.10
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions