linux/drivers/tee
Dan Carpenter 832f3655c6 tee: amdtee: fix an IS_ERR() vs NULL bug
[ Upstream commit 9d7482771f ]

The __get_free_pages() function does not return error pointers it returns
NULL so fix this condition to avoid a NULL dereference.

Fixes: 757cc3e9ff ("tee: add AMD-TEE driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-22 09:32:38 +01:00
..
amdtee tee: amdtee: fix an IS_ERR() vs NULL bug 2021-12-22 09:32:38 +01:00
optee tee: optee: Fix missing devices unregister during optee_remove 2021-10-12 13:24:39 +02:00
Kconfig
Makefile
tee_core.c
tee_private.h
tee_shm_pool.c
tee_shm.c tee: Correct inappropriate usage of TEE_SHM_DMA_BUF flag 2021-07-21 07:55:50 +02:00