linux/drivers/tee
Mostafa Saleh 650c88738a optee: ffa: Add NULL check in optee_ffa_lend_protmem
Sashiko (locally) reports a possible null dereference under memory
pressure due to the lack of validation of the allocated pointer.

Fix that by adding the missing check.

Fixes: 2b78d79cdf ("optee: FF-A: dynamic protected memory allocation")
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Sebastian Ene <sebastianene@google.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Sebastian Ene <sebastianene@google.com>
Signed-off-by: Jens Wiklander <jenswi@kernel.org>
2026-06-29 08:04:45 +02:00
..
amdtee tee: amdtee: store buffer ID in tee_shm->sec_world_id 2026-04-27 14:13:08 +02:00
optee optee: ffa: Add NULL check in optee_ffa_lend_protmem 2026-06-29 08:04:45 +02:00
qcomtee tee: qcomtee: add missing va_end in early return qcomtee_object_user_init() 2026-05-20 09:22:52 +02:00
tstee Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig Add Qualcomm TEE driver (QTEE) 2025-09-23 23:08:25 +02:00
Makefile tee: add Qualcomm TEE driver 2025-09-15 17:34:06 +02:00
tee_core.c tee: fix params_from_user() error path in tee_ioctl_supp_recv 2026-05-20 08:49:09 +02:00
tee_heap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tee_private.h tee: add close_context to TEE driver operation 2025-09-15 17:34:06 +02:00
tee_shm_pool.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tee_shm.c tee: shm: fix shm leak in register_shm_helper() 2026-05-20 08:49:09 +02:00