android_kernel_motorola_sm6375/drivers/tee
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tyler Hicks 3c712f14d8 optee: Fix memory leak when failing to register shm pages
commit ec185dd3ab257dc2a60953fdf1b6622f524cc5b7 upstream.

Free the previously allocated pages when we encounter an error condition
while attempting to register the pages with the secure world.

Fixes: a249dd200d03 ("tee: optee: Fix dynamic shm pool allocations")
Fixes: 5a769f6ff439 ("optee: Fix multi page dynamic shm pool alloc")
Cc: [email protected]
Signed-off-by: Tyler Hicks <[email protected]>
Reviewed-by: Jens Wiklander <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-08-12 13:21:01 +02:00
..
optee optee: Fix memory leak when failing to register shm pages 2021-08-12 13:21:01 +02:00
Kconfig
Makefile
tee_core.c
tee_private.h
tee_shm.c tee: add tee_shm_alloc_kernel_buf() 2021-08-12 13:21:01 +02:00
tee_shm_pool.c